I am currently using switch node to control my AC. I have a high and a low setpoint. And an “Off” for when big timer turns off, the system shuts down. Everything is working great.
I want to be able to use two input selects so I can change the setpoins from the HA frontend. I have been trying to figure this out on my own, but can’t make it happen.
Basically input comes into the switch node, either as a string value of the current temperature or “Off”.
Can someone help with the json or am I going at it the wrong way?
All help and advice appreciated. Note the current input_selects are in place but aren’t working. 
I’m assuming that you want to 78 and 80 with variables. One way to do this would be to pass them in with the message and then comparing to msg.low_setpoint
(for example). This would require you to use a join
to combine 3 messages (the existing one plus one reading each of the two input_select
fields. This ends up looking a bit complicated.
Alternatively, you could monitor changes on each of the UI fields and store a copy in flow variables (on the same flow as the one in your question). Then the switch
can compare to, for example, flow.low_setpoint
. Assuming you are persisting context, you should not need to worry about reloading the flow variables when NR restarts flows (eg. full deploy).