Synchronous MQTT
Posted: Sunday 10 December 2017 10:24
The suggested way of using MQTT is to create dummy devices according to the Wiki.
This works perfect for sensors where Domoticz should just receive data and monitor the status, but it doesn't work so well for switches because:
In this way, "MQTT" hardware will get the chance to handle requests to switch/dim/etc and can wait for ACK in the same way as other HW types.
Edit:
Maybe a more generic version of "MySensors Gateway with MQTT interface" would make sense?
This works perfect for sensors where Domoticz should just receive data and monitor the status, but it doesn't work so well for switches because:
- There will be no indication in Domoticz UI if the switch was not succesfully switched because a dummy device can not fail
- The Domoticz/out message is (implicitly) a "udevice" (update device) command, but is being interpreted, for example by Tasmota, as if it was a "switchlight" command. This causes ambiguity because there is no way to distinguish a command ("switch light on!") from a status update ("light is switched on").
In this way, "MQTT" hardware will get the chance to handle requests to switch/dim/etc and can wait for ACK in the same way as other HW types.
Edit:
Maybe a more generic version of "MySensors Gateway with MQTT interface" would make sense?