Only publish on change

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
oisisi
Normal user
Posts: 38
Joined: 06 Jul 2016, 13:47

Only publish on change

#1 Post by oisisi » 14 Jan 2017, 07:26

Is there a way (a rule, a formula, a setting) to only publish when a value changes or, even better, when the delta is above a defined threshold?

I use lux and distance sensors. I want (relevant) changes to be published immediately but not clutter the airwaves / swamp the broker with the same messages when nothing changes.

Allycat1972
Normal user
Posts: 25
Joined: 19 Apr 2016, 11:12

Re: Only publish on change

#2 Post by Allycat1972 » 16 Jan 2017, 12:13

You can always use the LEVEL plugin from the playground

with regards to the publish, it should only send the changes unless you have set the DELAY variable in the device. This will send out the status every (60) seconds for example if the delay is set to 60.

This is useful to initialise items after a reboot.

Regards

Andrew

oisisi
Normal user
Posts: 38
Joined: 06 Jul 2016, 13:47

Re: Only publish on change

#3 Post by oisisi » 20 Jan 2017, 12:50

Thank you Andrew. This is what I was looking for. I knew it could be right in front of my eyes.

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests