I am making my way to node-red at the moment and the simple flows are pretty straight forward.
Now I want to make a flow for the mailbox.
I have a sensor when the mailbox is opened and closed and I have a input_boolean in home-assistant “mail” true/false.
Now I want a workflow that is pretty much like:
When Mailbox is opened (I figure this is state change) then check if input_boolean “mail” is false. If false then send notification and set input_boolean to true.
If input_boolean is true when mailbox is opened then set it to false and don’t send a notification.
I guess I have to do that with switch-nodes but I have no idea what I am doing there.
Any hint or help is appreciated.