MQTT Sensor Update Issue and Possible Solutions

Hello everyone, I’m currently working with a binary MQTT sensor in my Home Assistant setup and have encountered an interesting issue. The sensor works perfectly after a configuration reload, but it doesn’t update in real-time when the state changes on the external MQTT broker. This means I have to manually reload the configuration or reboot Home Assistant to see the updated state. I’m wondering if anyone has experienced this and if there are any solutions or workarounds. Here’s how I’ve configured the sensor:

yaml
mqtt:

  • binary_sensor:
    name: “EVCC smartCostActive”
    state_topic: “haustechnik/evcc/site/smartCostActive”
    payload_on: “true”
    payload_off: “false”

I’ve tried checking the MQTT broker logs to ensure the messages are being sent correctly, and they seem fine. I’m also using the latest version of Home Assistant, so I don’t think it’s a software issue. Maybe there’s a setting I’m missing in the MQTT configuration? I’m curious to hear if others have faced similar challenges and how they resolved them. Thanks in advance for any insights or suggestions!