When I open up the MQTT window on HASSIO and hit the connect button, it connects and then immediately disconnects. Here’s the log:
> 1564421743: Socket error on client <unknown>, disconnecting.
> 1564421758: Client hassio-mqtt-client already connected, closing old connection.
> 1564421758: New client connected from 192.168.2.182 as hassio-mqtt-client (p1, c1, k60, u'jamesrshaffer').
> 1564421758: New connection from 192.168.2.64 on port 1883.
> 1564421758: Client hassio-mqtt-client already connected, closing old connection.
> 1564421758: New client connected from 192.168.2.64 as hassio-mqtt-client (p2, c1, k15, u'jamesrshaffer').
> 1564421758: Socket error on client hassio-mqtt-client, disconnecting.
I do have one device (a sonoff 4-channel relay device on 192.168.2.64) that publishes status to this MQTT server, and I feel like that’s the problem. Shouldn’t they all coexist nicely?
Alright, resolved that, and now stay connected. Now, just to test, I published (I think) “xyz” to “testtopic” using HiveMQ. I then subscribed to the same “topic”, published another “xyz”, but see no messages. Am I doing it wrong?
Or, can I just subscribe to the messages my Sonoff4CH is publishing: