node-red-contrib-home-assistant-llat
node-red-contrib-home-assistant-llat copied to clipboard
event: state node suggestion: Send initial state checkbox
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.
Please feel free to submit a PR for this! it sounds like a great idea!