Page 1 of 1
Domoticz to Mosquitto communication
Posted: Saturday 13 January 2024 23:35
by Eugene
HI Guys,
I am new to Zigbee and MQTT. I am trying to make my Zigbee network working with Domoticz (2024.1 build 15838). My setup is zigbee2mqtt -> mosquitto -> domoticz.
The problem is that i do not see any devices appearing in Domoticz when i open the MQTT device in domoticz.
i am attaching my mqtt device config in domoticz, the empty device list and mqtt explorer view
here is what i see in mosquitto when i subscribe to all topics using mosquitto_sub.
First two lines pops up when i restart MQTT device in domotics by clicking update, second two lines appear when i flip the switch on Zigbee device.
offline
online
{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{\"linkquality\":78,\"state\":\"OFF\",\"update\":{\"installed_version\":2109509,\"latest_version\":33908048,\"state\":\"available\"}}'"}
{"linkquality":78,"state":"OFF","update":{"installed_version":2109509,"latest_version":33908048,"state":"available"}}
Please suggest what next i should be looking at? i feel stuck now.
Thanks in advance
Re: Domoticz to Mosquitto communication
Posted: Saturday 13 January 2024 23:52
by waltervl
Looks like the problem is in Zigbee2MQTT.
There should be devices listed in mqtt homeassistant folder. So it seems your configuration in Zigbee2MQTT is not correct. Check the logs of Zigbee2MQTT.
Second. The new devices from Zigbee2MQTT will not show in the Domoticz hardware gateway setup button configuration list but in the Domoticz device list, menu Setup- Devices.
Re: Domoticz to Mosquitto communication
Posted: Sunday 14 January 2024 0:09
by Eugene
Thanks. I do not see anything in Menu -> Setup -> Devices either. Had a look into zigbee2mqtt logs but i do not see anything suspicious there. Here is the log from docker start, i cut the rest of the logs which shows just device state flaps when i was generating messages trying to make them reaching domoticz.
info 2024-01-13 17:53:41: Logging to console and directory: '/app/data/log/2024-01-13.17-53-41' filename: log.txt
info 2024-01-13 17:53:41: Starting Zigbee2MQTT version 1.35.1 (commit #9eaaa0f)
info 2024-01-13 17:53:41: Starting zigbee-herdsman (0.30.0)
info 2024-01-13 17:53:43: zigbee-herdsman started (resumed)
info 2024-01-13 17:53:43: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210708,"transportrev":2},"type"
:"zStack3x0"}'
info 2024-01-13 17:53:43: Currently 1 devices are joined:
info 2024-01-13 17:53:43: power plug ledvance (0xf0d1b800001c33f0): 4058075729322 - LEDVANCE SMART+ Compact Outdoor Plug EU (Router)
info 2024-01-13 17:53:43: Zigbee: disabling joining new devices.
info 2024-01-13 17:53:43: Connecting to MQTT server at mqtt://192.168.152.3
info 2024-01-13 17:53:43: Connected to MQTT server
info 2024-01-13 17:53:43: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
info 2024-01-13 17:53:43: Started frontend on port 8080
info 2024-01-13 17:53:43: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"state":"OFF","update":{"installed_version":2109509,"latest_version":3
3908048,"state":"available"}}'
info 2024-01-13 17:53:43: Zigbee2MQTT started!
info 2024-01-13 17:55:04: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":84,"state":"ON","update":{"installed_version":2109509,"l
atest_version":33908048,"state":"available"}}'
info 2024-01-13 17:55:04: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":84,"state":"ON","update":{"installed_version":2109509,"l
atest_version":33908048,"state":"available"}}'
info 2024-01-13 17:55:05: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":81,"state":"OFF","update":{"installed_version":2109509,"
latest_version":33908048,"state":"available"}}'
info 2024-01-13 17:55:05: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":78,"state":"OFF","update":{"installed_version":2109509,"
latest_version":33908048,"state":"available"}}'
info 2024-01-13 17:55:05: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":81,"state":"ON","update":{"installed_version":2109509,"l
atest_version":33908048,"state":"available"}}'
info 2024-01-13 17:55:05: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":81,"state":"ON","update":{"installed_version":2109509,"l
atest_version":33908048,"state":"available"}}'
info 2024-01-13 17:55:06: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":81,"state":"OFF","update":{"installed_version":2109509,"
latest_version":33908048,"state":"available"}}'
info 2024-01-13 17:55:06: MQTT publish: topic 'zigbee2mqtt/power plug ledvance', payload '{"linkquality":78,"state":"OFF","update":{"installed_version":2109509,"
latest_version":33908048,"state":"available"}}'
Re: Domoticz to Mosquitto communication
Posted: Sunday 14 January 2024 0:42
by Eugene
also not sure if it matters here or not - i made a fresh setup of Domoticz, there is nothing changed in its default configuration except added MQTT server which i shared on the screenshot above
Re: Domoticz to Mosquitto communication
Posted: Sunday 14 January 2024 16:56
by waltervl
https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover
Zigbee22MQTT settings:
In your Zigbee2MQTT configuration.yaml set homeassistant: true (link) , nano /opt/zigbee2mqtt/data/configuration.yaml or use the User interface:
Re: Domoticz to Mosquitto communication
Posted: Sunday 14 January 2024 19:38
by Eugene
waltervl, thanks a lot! this was my problem, now discovery works!