Synchronous MQTT

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
emontnemery
Posts: 38
Joined: Sunday 08 October 2017 13:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Synchronous MQTT

Post by emontnemery »

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:
  • 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").
I'm thinking if there might another way to do this, for example by allowing creation of devices directly connected to "MQTT" hardware?
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest