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
Transmit status of Domoticz devices regularly via mqtt
Moderators: leecollings, remb0
-
- Posts: 14
- Joined: Saturday 11 May 2019 10:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Contact:
Transmit status of Domoticz devices regularly via mqtt
Last edited by wewa on Saturday 11 May 2019 17:03, edited 1 time in total.
-
- Posts: 14
- Joined: Saturday 11 May 2019 10:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Contact:
Re: Transmit status of Domoticz devices regularly via mqtt
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'.
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.
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 }
Who is online
Users browsing this forum: No registered users and 1 guest