I’ve installed Mosquitto broker in Hass IO (I’m using Hass.Io as docker container in “2018-11-13-raspbian-stretch-full.img” image. I am able to connect to the broker from my devices, and also the following is the output for “mosquitto_sub -d -t power” from the raspbian bash:
Client mosqsub/8277-SmartHome sending CONNECT
Client mosqsub/8277-SmartHome received CONNACK
Client mosqsub/8277-SmartHome sending SUBSCRIBE (Mid: 1, Topic: power, QoS: 0)
Client mosqsub/8277-SmartHome received SUBACK
Subscribed (mid: 1): 0
No at the same time I open another bash console, and execute "mosquitto_pub -d -t power -m "1"". This is the output:
Client mosqpub/7979-SmartHome sending CONNECT
Client mosqpub/7979-SmartHome received CONNACK
Client mosqpub/7979-SmartHome sending PUBLISH (d0, q0, r0, m1, ‘power’, … (1 bytes))
Client mosqpub/7979-SmartHome sending DISCONNECT
So it seems as if the pub sub connects to the broker fine, but subscriber gets nothing from the publish. I also tried to publish from the Hass Io MQTT tool and same behavior - the subscriber gets nothing. The same works fine if I uninstall mosquitto add-on from the Hass Io image and installs it directly on the raspbian OS (using "mosquitto_sub" and "mosquitto_pub" tools - not from Hass.Io tool).
What am I missing here?