Page 1 of 1

MQTT Auto Discovery and dzEvents

Posted: Monday 21 November 2022 22:38
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!!

Re: MQTT Auto Discovery and dzEvents

Posted: Monday 21 November 2022 22:47
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()"

Re: MQTT Auto Discovery and dzEvents

Posted: Monday 21 November 2022 23:07
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!!!