Page 1 of 1

Transmit status of Domoticz devices regularly via mqtt

Posted: Saturday 11 May 2019 10:40
by wewa
Hello everybody,

I use the "MQTT Client Gateway with LAN Interface" on Domoticz V4.10717. Right now the status or value of different devices (e.g. dummy switch or Open Weather Adapter) is sent via MQTT only if they are updated. I would need them to be sent regularly with a certain time interval (several seconds).
How can I realize this?

Best regards,
wewa

Re: Transmit status of Domoticz devices regularly via mqtt

Posted: Saturday 11 May 2019 14:28
by wewa
I found one solution which works for me.

Simply poll the data by requesting the device info, as described here: https://www.domoticz.com/wiki/MQTT#Request_Device_Info.

Send following command to topic 'domoticz/in'.

Code: Select all

{"command": "getdeviceinfo", "idx": 2450 }
But I am not really happy with that solution. I would prefer if domoticz would send the data automatically without the need to trigger it from somewhere else.