Hassio MQTT add-on won't stay connected

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?

Looks to me like you have multiple devices sharing the same CLIENT ID, which is a HUGE no-no with MQTT

Each device that connects to the MQTT-broker needs to have a unique ClientID.
Yours are the same, hence the problem.

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:

00:00:05 WIF: Connected
00:00:05 DNS: Initialized
00:00:05 HTP: Web server active on Sonoff4chPro.local with IP address 192.168.2.64
00:00:07 MQT: Attempting connection...
00:00:07 MQT: Connected
00:00:07 MQT: tele/sonoff/LWT = Online (retained)
00:00:07 MQT: cmnd/sonoff/POWER = 
00:00:07 MQT: tele/sonoff/INFO1 = {"Module":"Sonoff 4CH Pro", "Version":"5.9.1", "FallbackTopic":"Sonoff4chGarage", "GroupTopic":"sonoffs"}
00:00:07 MQT: tele/sonoff/INFO2 = {"WebServerMode":"Admin", "Hostname":"Sonoff4chPro", "IPAddress":"192.168.2.64"}
00:00:07 MQT: tele/sonoff/INFO3 = {"RestartReason":"Software/System restart"}
20:19:29 MQT: stat/sonoff/RESULT = {"POWER1":"OFF"}
20:19:29 MQT: stat/sonoff/POWER1 = OFF
20:19:29 MQT: stat/sonoff/RESULT = {"POWER2":"OFF"}
20:19:29 MQT: stat/sonoff/POWER2 = OFF
20:19:29 MQT: stat/sonoff/RESULT = {"POWER3":"OFF"}
20:19:29 MQT: stat/sonoff/POWER3 = OFF
20:19:29 MQT: stat/sonoff/RESULT = {"POWER4":"OFF"}
20:19:29 MQT: stat/sonoff/POWER4 = OFF
20:19:36 MQT: tele/sonoff/STATE = {"Time":"2019-07-29T20:19:36", "Uptime":0, "Vcc":3.174, "POWER1":"OFF", "POWER2":"OFF", "POWER3":"OFF", "POWER4":"OFF", "Wifi":{"AP":1, "SSId":"7034895325", "RSSI":92, "APMac":"88:D7:F6:08:53:E0"}}
20:24:39 MQT: tele/sonoff/STATE = {"Time":"2019-07-29T20:24:39", "Uptime":0, "Vcc":3.174, "POWER1":"OFF", "POWER2":"OFF", "POWER3":"OFF", "POWER4":"OFF", "Wifi":{"AP":1, "SSId":"7034895325", "RSSI":90, "APMac":"88:D7:F6:08:53:E0"}