I have a temperature sensor and a window opening
i have it configured through the switch node as pictured below
However it is switching an already Open, On every 3-4 minutes and i am woried this will burn out my relay
Which node would i use to send the Open command only once, or only trigger open if closed
im thinking the Trigger State.
i think my problem is the temperature is always changing i have a switch splitting the temperature 3 ways above 16 degree opens the window but it will keep triggering at every temperature transmitted above that
Yes i have the relay on only for the time it takes to open the window, as i wanted to isolate it encase of battery drain, (i might be worrying about nothing)
I think i have solved it by using a change node, to fix the changing temperature coming out of the switch node, to pass on the message as "above" or "below" then use the suggestion from @Colin (thanks) to use an RBE node
for example you could set a flow.windowstate variable with a change node to a "open" value when a command to open the window is executed, and to a "closed" value when a command to close the window is executed.
use a switch node that will check the value of the flow.windowstate variable before executing the open or close command:
For an open command:
if flow.windowstate is 'open" -> do nothing
if flow.windowstate is "closed" - > execute open command
This way you wouldn't have twist your brain to deal with the constant temperature changes, as the commands will be ignored if the window is already in the required position.