I have a esp8266 with magnetic switch for a door sensor. When door is open it sends a 1 to the topic, and closed sends a 2. My configuration.yaml is below. When messages are sent, nothing is happening. T
post a screen shot of the output of mqttfx with the sensor triggering on & off.
are you sure that HA is connected to the MQTT broker so it can receive the messages?
if the code you posted above is “exactly” like the code in your configuration then you have spacing issues and you are using the wrong type of quotation marks. But I can’t tell if that’s true unless you format your code correctly using the gif I posted.
How have you confirmed that it is connected to the broker?
Use Home Assistant’s MQTT page to publish a 1 to sensor/doorbell/door-status. If the binary sensor doesn’t change state then Home Assistant isn’t connected to the broker.
Glad to hear it … but it’s not likely it was related to Home Assistant’s version. I use MQTT extensively and my production system is currently running 0.89 without any MQTT issues (test system is running 0.91, also without MQTT problems).
Anyway, if you should encounter the issue again, we’re here to help.