node-red-contrib-home-assistant-llat icon indicating copy to clipboard operation
node-red-contrib-home-assistant-llat copied to clipboard

event: state node suggestion: Send initial state checkbox

Open Pretagonist opened this issue 6 years ago • 1 comments

When working on flows or general HA configs it would help a lot if some states would get triggered on restart or deploy.

I have flows that keep track of people in the house and since the home/away states of trackers is only set when the state changes I have to use injections or polling to get the states into my node red flow.

It would be great if the "events: state" node had a "send initial state" checkbox that causes it to send the current state of the thing it's tracking on start. Preferably with a few seconds delay, and possibly a bit randomized to prevent a lot of flows being triggered at exactly the same time.

Pretagonist avatar Sep 17 '18 08:09 Pretagonist

Please feel free to submit a PR for this! it sounds like a great idea!

Spartan-II-117 avatar Sep 18 '18 22:09 Spartan-II-117