Hi all,
I have a problem with my Zigbee2MQTT bridge in my Openhab 2.5M4 (I had the same issue with 2.5M3).
I have a Zigbee2MQTT installation with a coordinator, a couple of routers and some devices. I am using Mosquitto as broker because native Openhab broker had some problems and didn’t wanted to deal with them.
Besides the Zigbee2MQTT I have a Tasmotized Sonoff and a stock Shelly both connected to the same Mosquitto broker.
The bridge and thing are defined with files as follows:
Bridge mqtt:broker:zigbee2MQTTBroker [ host="127.0.0.1", secure=false ]
{
Thing topic zigbeeMQTT "Zigbee2MQTT CC2531" {
Channels:
Type switch : permitJoin [ commandTopic="zigbee2mqtt/bridge/config/permit_join", on="true", off="false" ]
Type string : state [ stateTopic="zigbee2mqtt/bridge/state" ]
Type string : logType [ stateTopic="zigbee2mqtt/bridge/log", transformationPattern="JSONPATH:$.type" ]
Type string : logMessage [ stateTopic="zigbee2mqtt/bridge/log", transformationPattern="JSONPATH:$.message" ]
}
And all devices below this.
The “Sonoff/Shelly” bridge:
Bridge mqtt:broker:mosquitto "Mosquitto" [ host="127.0.0.1", secure=false ]
{
Thing topic ShellyAnnounce "ShellyAnnounce" {
Channels:
Type string : announcestring "announcestring" [ stateTopic="shellies/announce" ]
}
So it’s almost the same.
Everything works fine after reboot. However, after a day or two, the Zigbee2MQTT bridge in Openhab stops receiving updates and don’t send commands too. Shelly and Sonoff works fine from PaperUI and BasicUI.
I can see messages in Zigbee2MQTT daemon from devices, I see messages reaching the MQTT broker with MQTT Explorer and can send messages to Zigbee devices using the MQTT Explorer, but Openhab doesn’t receive them.
Restarting the Openhab service fixes the problem.
Any clue about the problem?
How can I debug the bridge? How can I check why the bridge is not receiving messages from the broker? The broker seems to works fine as the other bridge stills working.
Thank you in advance.
Best regards
Aurelio Llorente