Help - Trying to set the value of a switch in Node-red via HA

As an example, I have switch in Node-red that says, if payload equal to or greater than 5, do action 1.

I would like to be able to change/set the “5” via home assistant I’m fairly comfortable with NR but don’t know what functions I should be using here.

Bounus separate question.

Is it possible to set the value of a node without triggering the output?

For example, “node 2, 3 and 4” value always equals the same as “node 1”

I think you’re doing it the wrong way. Have a switch in HA trigger a flow in Node-Red

Thank you but that won’t work in this situation.

I have a flow to automate a portable AC unit, it has a safety switch, so if the exhaust isn’t connected to the vent it won’t turn on.

I have the switch in node red to turn on the AC if the room gets to a certain temperature, and block the flow if the safety becomes disconnected.

Some times I want to set that to a different temperature without editing the flow

Could you use input number and read the value in Node Red?