Evening, Appreciate the replies. Excuse my Dyslexia, my brain thinks faster than my fingers.
This is my Heating Flow page.
[{"id":"c2049d501f05e4b9","type":"switch","z":"c62060377c8ef461","name":"Check for 'heat'","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"heat","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":610,"y":140,"wires":[["c9d3f1a2b4e5c6a7"],["e59263a23b207b5a"]]},{"id":"e59263a23b207b5a","type":"debug","z":"c62060377c8ef461","name":"Output (No 'heat')","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":180,"wires":[]},{"id":"f1a2e3b4d5c6b7a8","type":"server-state-changed","z":"c62060377c8ef461","name":"Living Room Radiator","server":"b9a48d8e.e88e9","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["climate.living_rad"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","outputOnlyOnStateChange":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[],"x":300,"y":120,"wires":[[]]},{"id":"e9c8b7a6d5c4b3a2","type":"server-state-changed","z":"c62060377c8ef461","name":"Hallway Radiator","server":"b9a48d8e.e88e9","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["climate.hall_rad"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","outputOnlyOnStateChange":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[],"x":300,"y":180,"wires":[[]]},{"id":"a1d2e3b4c5d6e7f8","type":"server-state-changed","z":"c62060377c8ef461","name":"Study Radiator","server":"b9a48d8e.e88e9","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["climate.study_rad"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","outputOnlyOnStateChange":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[],"x":300,"y":240,"wires":[[]]},{"id":"c9d3f1a2b4e5c6a7","type":"api-call-service","z":"c62060377c8ef461","name":"Turn on Boiler Switch","server":"b9a48d8e.e88e9","version":7,"debugenabled":false,"action":"switch.turn_on","floorId":[],"areaId":[],"deviceId":[],"entityId":["switch.boiler_control_l1"],"labelId":[],"data":"{}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"switch","service":"turn_on","mergecontext":"","x":870,"y":140,"wires":[[]]},{"id":"c2b2e6a3d1f4d3c9","type":"join","z":"c62060377c8ef461","name":"Wait for all to report","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":true,"accumulate":false,"timeout":"5","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":600,"y":300,"wires":[["e9a8f4c3b2a1d5c4","fbf0a1f1f6f60350"]]},{"id":"e9a8f4c3b2a1d5c4","type":"switch","z":"c62060377c8ef461","name":"All 'off'?","property":"payload","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"$[0].payload = 'off' and $[1].payload = 'off' and $[2].payload = 'off'","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":780,"y":300,"wires":[["d8c7b6a5f4e3d2c1","223da61e7ab2fab2"]]},{"id":"d8c7b6a5f4e3d2c1","type":"api-call-service","z":"c62060377c8ef461","name":"Turn off Boiler Switch","server":"b9a48d8e.e88e9","version":7,"debugenabled":false,"action":"switch.turn_off","floorId":[],"areaId":[],"deviceId":[],"entityId":["switch.boiler_control_l1"],"labelId":[],"data":"{}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"switch","service":"turn_off","mergecontext":"","x":980,"y":300,"wires":[[]]},{"id":"b2ba5ab01e14dd4d","type":"debug","z":"c62060377c8ef461","name":"debug 5","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":220,"wires":[]},{"id":"141338fd020c2efb","type":"server-state-changed","z":"c62060377c8ef461","name":"Living ","server":"b9a48d8e.e88e9","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["climate.living_rad"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":270,"y":380,"wires":[["c2049d501f05e4b9","c2b2e6a3d1f4d3c9","b2ba5ab01e14dd4d","4207ce0815b21690"]]},{"id":"e0a124938b828838","type":"server-state-changed","z":"c62060377c8ef461","name":"Hall","server":"b9a48d8e.e88e9","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["climate.hall_rad"],"substring":[],"regex":[]},"outputInitially":true,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":270,"y":500,"wires":[["c2049d501f05e4b9","c2b2e6a3d1f4d3c9","b2ba5ab01e14dd4d","cc5a7c56fa45b3e4"]]},{"id":"def1795688a8405c","type":"server-state-changed","z":"c62060377c8ef461","name":"Study","server":"b9a48d8e.e88e9","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["climate.study_rad"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":270,"y":620,"wires":[["c2049d501f05e4b9","c2b2e6a3d1f4d3c9","b2ba5ab01e14dd4d","7419b0209b5f0848"]]},{"id":"a24485d785b72963","type":"inject","z":"c62060377c8ef461","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":980,"y":400,"wires":[["d8c7b6a5f4e3d2c1"]]},{"id":"fbf0a1f1f6f60350","type":"debug","z":"c62060377c8ef461","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":600,"y":440,"wires":[]},{"id":"223da61e7ab2fab2","type":"debug","z":"c62060377c8ef461","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":517,"wires":[]},{"id":"4207ce0815b21690","type":"debug","z":"c62060377c8ef461","name":"debug 8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":534,"y":507,"wires":[]},{"id":"cc5a7c56fa45b3e4","type":"debug","z":"c62060377c8ef461","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":560,"wires":[]},{"id":"7419b0209b5f0848","type":"debug","z":"c62060377c8ef461","name":"debug 10","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":620,"wires":[]},{"id":"b9a48d8e.e88e9","type":"server","name":"Home Assistant","addon":true}]
So when an Aqara TRV is turned on or off, the outputs that get generated are ‘off’ and ‘heat’, that is what I have gleaned from the debug symbols.
I have 3 TRVs connected for trialling.
So what I am trying to create is…
If any of the inputs have ‘heat’ THEN turn the Boiler ON
ELSE
Boiler OFF
So in my testing i have got as far as I can turn the boiler on, but when they are all ‘off’ it DOES NOT turn the boiler off…
Debug6 outputs
05/09/2025, 00:04:51[node: debug 6]
climate.hall_rad : msg.payload : array[1]
[ “off” ]
But the All Off does not do anything.
Nothing comes out of debug7
I suspect gemini has got something wrong in the Json on the ‘all off?’ switch node.
A little help with the last part would be appreciated.
P.