I’m attempting to use the payload from a temperature sensor as the property for a switch node. I also have a slider in Home Assistant that controls an input number in node red. I’m trying to take the payload form the input number and use it as the values for the switch node that the property is being checked against.
This is what I currently have
[{"id":"32bc9d642fe3ac62","type":"tab","label":"","disabled":false,"info":""},{"id":"65c768c9f86812da","type":"debug","z":"32bc9d642fe3ac62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1110,"y":340,"wires":[]},{"id":"85ec2bf98594b7c0","type":"inject","z":"32bc9d642fe3ac62","name":"Inject Temp 33","props":[{"p":"payload.DS18B20.Temperature","v":"33","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":240,"y":380,"wires":[["18a840f7c09cf4f5","f72a0de7638ae0ac"]]},{"id":"6b68fe813853e5f4","type":"debug","z":"32bc9d642fe3ac62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1110,"y":240,"wires":[]},{"id":"faab44569ca98d3d","type":"debug","z":"32bc9d642fe3ac62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":180,"wires":[]},{"id":"f259bb559d2c6102","type":"inject","z":"32bc9d642fe3ac62","name":"Inject Temp 25","props":[{"p":"payload.DS18B20.Temperature","v":"25","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":240,"y":200,"wires":[["faab44569ca98d3d","f72a0de7638ae0ac"]]},{"id":"18a840f7c09cf4f5","type":"debug","z":"32bc9d642fe3ac62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":450,"y":380,"wires":[]},{"id":"98667477bce0f152","type":"server-state-changed","z":"32bc9d642fe3ac62","name":"","server":"8cd93e38.ec024","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.ds18b20_hi_fault","entityidfiltertype":"exact","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,"outputProperties":[{"property":"payload.input_number.ds18b20_hi_fault.set_point","propertyType":"msg","value":"","valueType":"entityState"}],"x":330,"y":280,"wires":[["c36c3ac896dcaa54","f72a0de7638ae0ac"]]},{"id":"c36c3ac896dcaa54","type":"debug","z":"32bc9d642fe3ac62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":750,"y":360,"wires":[]},{"id":"f72a0de7638ae0ac","type":"switch","z":"32bc9d642fe3ac62","name":"","property":"payload.DS18B20.Temperature","propertyType":"msg","rules":[{"t":"lt","v":"payload.input_number.ds18b20_hi_fault.set_point","vt":"msg"},{"t":"gte","v":"payload.input_number.ds18b20_hi_fault.set_point","vt":"msg"}],"checkall":"true","repair":false,"outputs":2,"x":810,"y":280,"wires":[["6b68fe813853e5f4"],["65c768c9f86812da"]]},{"id":"8cd93e38.ec024","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
I am new to Node-Red and perhaps what I’m attempting to do isn’t possible.