Anamico / node-red-contrib-alarm

Nodes to build your own home alarm system. Designed to work easily with (but does not require) homekit.
MIT License
24 stars 8 forks source link

Add a KeepAlive to messages to prevent infinite loops? #1

Open macinspak opened 5 years ago

macinspak commented 5 years ago

That, or a better solution, up to you.

Nominally, if a message arrives, and it doesn't have a keepalive, add one. Add or subtract (whatever works) to that keepalive each time the panel sees the message.

If it hits a threshold, drop the message, it's obviously in a loop.