MQTT Auto Discovery and dzEvents Topic is solved

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
lgarrido
Posts: 6
Joined: Saturday 20 February 2021 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

MQTT Auto Discovery and dzEvents

Post by lgarrido »

Hello,

Until now I was using the domoticz-zigbee2mqtt-plugin. Now I am trying to replace it with MQTT Auto Discovery. It is fine, I am able to get all my devices working in Domoticz and I can manage all events I am intersested in. :) However I have a problem with dzEvents :

Instructions like "domoticz.devices('xyz').switchOn()" , do not work. :x I made it work by having the domoticz-zigbee2mqtt-plugin active and with all its devices Unused. Is strage, because xyz is a MQTT Auto Discovery device!!

Any advice? I was thinking on replacing those instruction with HTTP request to Domoticz API or generate MQTT messages...but, is there a simplier solution??? I am missing something :?: :?: :?:

Thanks!!
User avatar
waltervl
Posts: 5903
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT Auto Discovery and dzEvents

Post by waltervl »

This is strange. The only reason I can think of is that you have 2 devices named xyz and dzvents got confused.
So disable the plugin. Rename the plugin device xyz to xyza and restart Domoticz (to trigger update of the event device list).
And try again to switch mqtt device xyz with "domoticz.devices('xyz').switchOn()"
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
lgarrido
Posts: 6
Joined: Saturday 20 February 2021 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: MQTT Auto Discovery and dzEvents

Post by lgarrido »

FIXED!!! :D :D Renaming zigbee2mqtt devices was not enough. But by removing all zigbee2mqtt devices now is working and I can interact with MQTT Auto Discovery devices

THANKS!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest