Page 1 of 1

Only publish on change

Posted: 14 Jan 2017, 07:26
by oisisi
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.

Re: Only publish on change

Posted: 16 Jan 2017, 12:13
by Allycat1972
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.



Re: Only publish on change

Posted: 20 Jan 2017, 12:50
by oisisi
Thank you Andrew. This is what I was looking for. I knew it could be right in front of my eyes.