Transmit status of Domoticz devices regularly via mqtt

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
wewa
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

Post 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
Last edited by wewa on Saturday 11 May 2019 17:03, edited 1 time in total.
wewa
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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest