MQTT Sensor

MQTT sensor doesn’t function as expected when using paho MQTT python library.

Although, messages from the python script do show using the mosquitto_sub command.

Sending a message from the python script doesn’t show in the home assistant sensor, but does show when subscribing using mosquitto_sub

Sending messages from the mosquitto_pub commands do show up in home assistant.

Thoughts please…

Could be an issue with the topics, the client ID, or the protocol version.

Thank you. The issue was a missing “/” at the beginning of the topic.

The official clients obviously don’t require it when home assistant does.

Matt