[{"id":"bb881b95.6626c8","type":"server-state-changed","z":"d4450f17.60952","name":"Triggers","server":"9405c3fe.d0a6c","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.master_bedroom_humidity_setpoint, sensor.master_bedroom_humidity","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":140,"y":680,"wires":[["b1bb8a0e.5acab8"]]},{"id":"b1bb8a0e.5acab8","type":"api-current-state","z":"d4450f17.60952","name":"Get hi","server":"9405c3fe.d0a6c","version":1,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.master_bedroom_humidity_setpoint","state_type":"num","state_location":"hi","override_payload":"msg","entity_location":"","override_data":"none","blockInputOverrides":true,"x":270,"y":680,"wires":[["f3f2fca6.a3e93"]]},{"id":"f3f2fca6.a3e93","type":"api-current-state","z":"d4450f17.60952","name":"Get humidity","server":"9405c3fe.d0a6c","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.master_bedroom_humidity","state_type":"num","state_location":"humidity","override_payload":"msg","entity_location":"","override_data":"none","blockInputOverrides":true,"x":410,"y":680,"wires":[["d20ca2e7.f743f"]]},{"id":"d20ca2e7.f743f","type":"api-current-state","z":"d4450f17.60952","name":"Get switch current state","server":"9405c3fe.d0a6c","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.humidifier_1_switch","state_type":"str","state_location":"currentState","override_payload":"msg","entity_location":"","override_data":"none","blockInputOverrides":true,"x":610,"y":680,"wires":[["9b64aa8d.01d728"]]},{"id":"9b64aa8d.01d728","type":"change","z":"d4450f17.60952","name":"Set lo & + 0 ranges","rules":[{"t":"set","p":"hi","pt":"msg","to":"$number(hi) + 0","tot":"jsonata"},{"t":"set","p":"lo","pt":"msg","to":"$number(hi) - 0","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":680,"wires":[["c853897b.c62ee8"]]},{"id":"c853897b.c62ee8","type":"switch","z":"d4450f17.60952","name":"","property":"humidity","propertyType":"msg","rules":[{"t":"gt","v":"hi","vt":"msg"},{"t":"lt","v":"lo","vt":"msg"},{"t":"else"}],"checkall":"false","repair":false,"outputs":3,"x":990,"y":680,"wires":[["8677fe.a9ed78"],["e3ce0df4.981d6"],["ef393185.e3a3a"]]},{"id":"8677fe.a9ed78","type":"api-call-service","z":"d4450f17.60952","name":"Switch on","server":"9405c3fe.d0a6c","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_on","entityId":"switch.humidifier_1_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1140,"y":640,"wires":[[]]},{"id":"e3ce0df4.981d6","type":"api-call-service","z":"d4450f17.60952","name":"Switch off","server":"9405c3fe.d0a6c","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_off","entityId":"switch.humidifier_1_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1140,"y":680,"wires":[[]]},{"id":"ef393185.e3a3a","type":"api-call-service","z":"d4450f17.60952","name":"keep","server":"9405c3fe.d0a6c","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_{{currentState}}","entityId":"switch.humidifier_1_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1130,"y":720,"wires":[[]]},{"id":"9405c3fe.d0a6c","type":"server","name":"Home Assistant","addon":true}]
I hope that works, I cannot test it. Why do you want the “+ 0”? I guess you’ll change that with other number? to set the range from going on to off?