Page 1 of 1
Can you use MQTT in dzVents?
Posted: Tuesday 10 July 2018 21:32
by Timmiej93
Basically, the title sums it all up: Is it possible to use MQTT in any form in dzVents?
Re: Can you use MQTT in dzVents?
Posted: Wednesday 11 July 2018 5:50
by SweetPants
depends on what you want to achieve. the question is rather generic. an event can be triggered through mqtt on domoticz/in and if you switch a light in dzventz. it generates a mqtt message on domoticz/out
Re: Can you use MQTT in dzVents?
Posted: Wednesday 11 July 2018 10:23
by Timmiej93
Yeah, I put down a broad question at first, because I couldn't find anything about MQTT in dzVents at all, so I was expecting it not to work at all.
I'd like to trigger events through incoming messages, preferably with custom topics of course, and I'd like to send out messages, also preferably with custom topics. I must say that I can't find anything about triggering an event through mqtt on the dzVents wiki page, am I missing something obvious?
Re: Can you use MQTT in dzVents?
Posted: Wednesday 11 July 2018 11:20
by emme
MQTT reflects all Domoticz Events... so basically everything you get in the log is almost replicated as MQTT telegram
if you want to trigger a script from outside, have MQTT do something in domoticz... change a variable, toggle a virtual switch or whatever
I've asked also to implement the .topic, but as an external message (from dz to MQTT) to better identify the area of the message (switch, consumption, dimmer etc etc), as a device characteristic.... Will not really understand how to use it as an incoming message
ciao
M