Domoticz to Mosquitto communication Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Eugene
Posts: 43
Joined: Wednesday 21 December 2016 19:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz to Mosquitto communication

Post 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
Attachments
mqtt3.PNG
mqtt3.PNG (49.47 KiB) Viewed 4646 times
mqtt2.PNG
mqtt2.PNG (39.27 KiB) Viewed 4646 times
mqtt.PNG
mqtt.PNG (22.79 KiB) Viewed 4646 times
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz to Mosquitto communication

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Eugene
Posts: 43
Joined: Wednesday 21 December 2016 19:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz to Mosquitto communication

Post 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"}}'
Eugene
Posts: 43
Joined: Wednesday 21 December 2016 19:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz to Mosquitto communication

Post 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
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz to Mosquitto communication

Post 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:
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Eugene
Posts: 43
Joined: Wednesday 21 December 2016 19:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz to Mosquitto communication

Post by Eugene »

waltervl, thanks a lot! this was my problem, now discovery works!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest