user-definable MQTT topic
Posted: Thursday 04 June 2020 17:26
Domoticz in/out MQTT topics are forced to be domoticz/in and domoticz/out at v4.10717 and 2020.1.
I have seen earlier discussion closed saying this cannot be changed.
I am integrating multiple instances of Domoticz. It is a bit inconvenient that I can't make each instance publish using a its own unique MQTT topic but I can work around that.
Unfortunately, I can't think of a reliable way to direct a command to a specific Domoticz instance via MQTT: the message {"command": "switchlight", "idx": 2450, "switchcmd": "On" } will be received by all instances when published to topic domoticz/in and it is likely that more than one instance will have a device with the same idx value.
I would be grateful if somebody could suggest a way to do this using just Domoticz and a single MQTT broker.
Thanks
David
I have seen earlier discussion closed saying this cannot be changed.
I am integrating multiple instances of Domoticz. It is a bit inconvenient that I can't make each instance publish using a its own unique MQTT topic but I can work around that.
Unfortunately, I can't think of a reliable way to direct a command to a specific Domoticz instance via MQTT: the message {"command": "switchlight", "idx": 2450, "switchcmd": "On" } will be received by all instances when published to topic domoticz/in and it is likely that more than one instance will have a device with the same idx value.
I would be grateful if somebody could suggest a way to do this using just Domoticz and a single MQTT broker.
Thanks
David