How do I split climate.dining_rm contents out?

I am a newbie to HA and Node-RED. I am trying to create a conditional sequence based on results returned from current_state whether the hvac_action = heating and current_humidity > 25 . I just haven’t been able to find how to get returned an array and lookup those elements. I am hoping to do this within Node-RED and not need java script to do it?

DenD,
Hello, Will you please post your Node-Red flow so I can get a better idea of what you are working with?

Here is a flow that I am using to control climate in a garden automation. It sounds like this may be useful based on your question. Please post your code, I would be more than happy to try to assist you with your flow.

[{"id":"56f5a827.a0a8f8","type":"tab","label":"Tent Temp - Veg","disabled":false,"info":""},{"id":"6780278f.bdef38","type":"server-state-changed","z":"56f5a827.a0a8f8","name":"","server":"fc1437ec.ba4bd8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.5x5_temperature","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","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":220,"y":40,"wires":[["8f4095a4.c69f78"]]},{"id":"9799a067.ebe32","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Turn On Humidifier","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.plug_1","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1130,"y":260,"wires":[[]]},{"id":"c9987273.3982f","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Turn Off Humidifier","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.plug_1","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1130,"y":320,"wires":[[]]},{"id":"c15d493e.f80ae8","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Turn On Heater","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.plug_6","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1120,"y":20,"wires":[[]]},{"id":"2fcca84e.e361f8","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Turn Off Heater","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.plug_6","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1120,"y":80,"wires":[[]]},{"id":"a5172c97.685e1","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Turn On Fan","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.plug_3","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1110,"y":140,"wires":[[]]},{"id":"c0e22e94.b2fbe","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Turn Off Fan","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.plug_3","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1110,"y":200,"wires":[[]]},{"id":"53e52c2.9185bd4","type":"api-current-state","z":"56f5a827.a0a8f8","name":"Only if off","server":"fc1437ec.ba4bd8","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.plug_1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":940,"y":260,"wires":[["9799a067.ebe32"],[]]},{"id":"60edf74b.02e5e8","type":"api-current-state","z":"56f5a827.a0a8f8","name":"Only if on","server":"fc1437ec.ba4bd8","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.plug_1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":940,"y":320,"wires":[["c9987273.3982f"],[]]},{"id":"108afceb.a24c23","type":"api-current-state","z":"56f5a827.a0a8f8","name":"Only if on","server":"fc1437ec.ba4bd8","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.plug_6","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":940,"y":80,"wires":[["2fcca84e.e361f8"],[]]},{"id":"a80f8bb1.2960b8","type":"api-current-state","z":"56f5a827.a0a8f8","name":"Only if on","server":"fc1437ec.ba4bd8","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.plug_3","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":940,"y":200,"wires":[["c0e22e94.b2fbe"],[]]},{"id":"1fcf454f.750dab","type":"api-current-state","z":"56f5a827.a0a8f8","name":"Only if off","server":"fc1437ec.ba4bd8","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.plug_6","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":940,"y":20,"wires":[["c15d493e.f80ae8"],[]]},{"id":"7da4ad95.4acc64","type":"api-current-state","z":"56f5a827.a0a8f8","name":"Only if off","server":"fc1437ec.ba4bd8","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.plug_3","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":940,"y":140,"wires":[["a5172c97.685e1"],[]]},{"id":"20cee686.29affa","type":"server-state-changed","z":"56f5a827.a0a8f8","name":"","server":"fc1437ec.ba4bd8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.climate_tolerance","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","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":200,"y":280,"wires":[["8f4095a4.c69f78"]]},{"id":"8f4095a4.c69f78","type":"join","z":"56f5a827.a0a8f8","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"6","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":490,"y":200,"wires":[["3abbcca6.d9ab24"]]},{"id":"d9e79789.5ca1f8","type":"server-state-changed","z":"56f5a827.a0a8f8","name":"","server":"fc1437ec.ba4bd8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.climate_temperature","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","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":190,"y":340,"wires":[["8f4095a4.c69f78"]]},{"id":"f29143a3.3fee1","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Humidifier on pct","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"input_number","service":"set_value","entityId":"input_number.humi_on_pct","data":"{\"value\":\"{{payload.humidifier_on_pct}}\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":670,"y":640,"wires":[[]]},{"id":"6c17dbb6.d86f04","type":"server-state-changed","z":"56f5a827.a0a8f8","name":"","server":"fc1437ec.ba4bd8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.5x5_humidity","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","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":240,"y":100,"wires":[["8f4095a4.c69f78"]]},{"id":"7e688188.acb8d","type":"server-state-changed","z":"56f5a827.a0a8f8","name":"","server":"fc1437ec.ba4bd8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.humidity_tolerance","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","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":200,"y":220,"wires":[["8f4095a4.c69f78"]]},{"id":"6115e23a.734a5c","type":"server-state-changed","z":"56f5a827.a0a8f8","name":"","server":"fc1437ec.ba4bd8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.climate_humidity","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","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":200,"y":160,"wires":[["8f4095a4.c69f78"]]},{"id":"3abbcca6.d9ab24","type":"function","z":"56f5a827.a0a8f8","name":"Heat, Cool & Humidity","func":"var temp = msg.payload[\"input_number.climate_temperature\"] ;\nvar tol = msg.payload[\"input_number.climate_tolerance\"];\nvar sensor = msg.payload[\"sensor.5x5_temperature\"];\nvar humi = msg.payload[\"input_number.climate_humidity\"];\nvar humitol = msg.payload[\"input_number.humidity_tolerance\"];\nvar humisensor = msg.payload[\"sensor.5x5_humidity\"];\nvar fanon = (temp + (tol + 2));\nvar fanoff = (temp - (tol - 2));\nvar heaton = (temp - (tol + 1));\nvar heatoff = (temp + (tol - 1));\nvar humion = (humi - humitol);\nvar humioff = (humi + humitol);\nmsg.data.temps = {\"current_temp\":sensor, \"set_temp\":temp, \"temp_tol\":tol, \"heat_on\":heaton, \"heat_off\":heatoff, \"fan_on\":fanon, \"fan_off\":fanoff, \"current_humi\":humisensor, \"set_humi\":humi, \"humi_tol\":humitol, \"humidifier_on_pct\":humion, \"humidifier_off_pct\":humioff};\nif (sensor < heaton) {\n\tvar msg1={};\n\tmsg1.payload = msg.data.temps;\n}\nelse if (sensor > heatoff) {\n    var msg2={};\n\tmsg2.payload = msg.data.temps;\n}\nif (sensor > fanon) {\n    var msg3={};\n\tmsg3.payload = msg.data.temps;\n}\nelse if (sensor < fanoff) {\n\tvar msg4={};\n\tmsg4.payload = msg.data.temps;\n}\nif (humisensor < humion ) {\n\tvar msg5={};\n\tmsg5.payload = msg.data.temps;\n}\n\nelse if (humisensor > humioff ) {\n    var msg6={};\n\tmsg6.payload = msg.data.temps;\n}\nvar msg7={};\nmsg7.payload = msg.data.temps;\nreturn[ msg1, msg2, msg3, msg4, msg5, msg6 , msg7]","outputs":7,"noerr":0,"initialize":"","finalize":"","x":660,"y":200,"wires":[["1fcf454f.750dab"],["108afceb.a24c23"],["7da4ad95.4acc64"],["a80f8bb1.2960b8"],["53e52c2.9185bd4"],["60edf74b.02e5e8"],["808df701.f7b6a8","e417f543.69ea88","f6da2c71.218","352da495.30d99c","f29143a3.3fee1","d3c871d3.3496c"]]},{"id":"d3c871d3.3496c","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Humidifier off pct","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"input_number","service":"set_value","entityId":"input_number.humi_off_pct","data":"{\"value\":\"{{payload.humidifier_off_pct}}\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":670,"y":700,"wires":[[]]},{"id":"808df701.f7b6a8","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Heat on Temp","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"input_number","service":"set_value","entityId":"input_number.heat_on_temp","data":"{\"value\":\"{{payload.heat_on}}\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":660,"y":400,"wires":[[]]},{"id":"e417f543.69ea88","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Heat off Temp","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"input_number","service":"set_value","entityId":"input_number.heat_off_temp","data":"{\"value\":\"{{payload.heat_off}}\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":660,"y":460,"wires":[[]]},{"id":"f6da2c71.218","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Fan on Temp","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"input_number","service":"set_value","entityId":"input_number.fan_on_temp","data":"{\"value\":\"{{payload.fan_on}}\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":650,"y":520,"wires":[[]]},{"id":"352da495.30d99c","type":"api-call-service","z":"56f5a827.a0a8f8","name":"Fan off Temp","server":"fc1437ec.ba4bd8","version":1,"debugenabled":false,"service_domain":"input_number","service":"set_value","entityId":"input_number.fan_off_temp","data":"{\"value\":\"{{payload.fan_off}}\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":650,"y":580,"wires":[[]]},{"id":"fc1437ec.ba4bd8","type":"server","name":"Home Assistant","addon":true}]