Tado Node Red - Make better

Hi Team. I was wondering if anyone can make or can make suggestions on how to make this flow easier on the eye or more efficient.

The flow will do the following

  1. check to see if my Mrs or myself are home. If we are
  2. If we are is there an open window open. If there is turn the heating in that room off
  3. If no open window are we overriding the heating to turn it off for 60 minues. If we are turn off
  4. If we are not overriding the heating are we wanting to boost the heating to 25 degrees. If we are boost of 60 minutes then turn the boost boolean to off.,
  5. If we are not boosting. Is there temp in the room => 21 degrees.
  6. If it is , is the time between 5am and 9PM at night.
  7. If it is , is Craig working from home? If I am turn the heating in that room off.
  8. If Craig is not WFH set the temp to heat up to 21
  9. pretty much the same for Saturday and Sunday routine
  10. when the reading reaches 21 turn it off in that room

Then there is a section to turn the heating off if my Mrs and I are not home,

[{"id":"172a1b8c897e3391","type":"tab","label":"Tado Schedules","disabled":false,"info":"","env":[]},{"id":"616dca7f1eba2cdc","type":"group","z":"172a1b8c897e3391","name":"Livingroom Temprature","style":{"label":true,"stroke":"#ffff3f"},"nodes":["4e082d773ac30ba3","cb0ddb687f15bca1","29b6c95794a689c5","b9231a25c6073d80","655e8d042a562dc8","fc8d492dddf5f364","e8552963317e863f","08d7bad3b19dbc05","2eb32022990c0446","e6acd9b759a3ec49","98606482b7e6886c","a31b8c5921c077f2","e8fa825c28a14aef","309b7c6ac3c30164","1f4a75c54a4a84db","8e2ae227322c26af","9012cec5c5bd6032","de6ce8dc14655cf0","31567fbe9ee40db7","758f4358680306aa","975459d7a492de95","50ad4f4b149e9a8a","484a7257584fb564","e674b15df777d335","5f4bed738dc6d313","5483336e87024d21","0a20bad0ccd7cf68","e6418e8e3b655502","b2bbdbd4694f55ae","db7ea77ad5b4ac25","0c391e39dec03bdf","a0b5bb1f5c6f4419","d93915df5a1f5cc6","c26e69d6c76b8165","cc564a04956c6993","248d1936fc68984a","7583cacb709e2e48","f559f0186569506d"],"x":14,"y":19,"w":1812,"h":822},{"id":"0c391e39dec03bdf","type":"junction","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","x":740,"y":380,"wires":[["655e8d042a562dc8","29b6c95794a689c5"]]},{"id":"4e082d773ac30ba3","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - ON","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_on","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1280,"y":440,"wires":[["d93915df5a1f5cc6"]]},{"id":"cb0ddb687f15bca1","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_off","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1290,"y":340,"wires":[[]]},{"id":"29b6c95794a689c5","type":"within-time-switch","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","nameInt":"","positionConfig":"6d1d5c66bea34100","startTime":"05:00","startTimeType":"entered","startOffset":0,"startOffsetType":"none","startOffsetMultiplier":60000,"endTime":"21:00","endTimeType":"entered","endOffset":0,"endOffsetType":"none","endOffsetMultiplier":60000,"timeRestrictions":0,"timeRestrictionsType":"none","timeDays":"1,2,3,4,5","timeOnlyOddDays":false,"timeOnlyEvenDays":false,"timeOnlyOddWeeks":false,"timeOnlyEvenWeeks":false,"timeMonths":"*","timedatestart":"","timedateend":"","propertyStart":"","propertyStartType":"none","propertyStartCompare":"true","propertyStartThreshold":"","propertyStartThresholdType":"num","startTimeAlt":"","startTimeAltType":"entered","startOffsetAlt":0,"startOffsetAltType":"none","startOffsetAltMultiplier":60000,"propertyEnd":"","propertyEndType":"none","propertyEndCompare":"true","propertyEndThreshold":"","propertyEndThresholdType":"num","endTimeAlt":"","endTimeAltType":"entered","endOffsetAlt":0,"endOffsetAltType":"none","endOffsetAltMultiplier":60000,"withinTimeValue":"true","withinTimeValueType":"msgInput","outOfTimeValue":"false","outOfTimeValueType":"msgInput","tsCompare":"0","x":850,"y":380,"wires":[["b9231a25c6073d80"],[]]},{"id":"b9231a25c6073d80","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Craig WFH?","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.mode_craig_wfh","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1050,"y":380,"wires":[["cb0ddb687f15bca1"],["4e082d773ac30ba3"]]},{"id":"655e8d042a562dc8","type":"within-time-switch","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","nameInt":"","positionConfig":"6d1d5c66bea34100","startTime":"05:00","startTimeType":"entered","startOffset":0,"startOffsetType":"none","startOffsetMultiplier":60000,"endTime":"21:00","endTimeType":"entered","endOffset":0,"endOffsetType":"none","endOffsetMultiplier":60000,"timeRestrictions":0,"timeRestrictionsType":"none","timeDays":"6,0","timeOnlyOddDays":false,"timeOnlyEvenDays":false,"timeOnlyOddWeeks":false,"timeOnlyEvenWeeks":false,"timeMonths":"*","timedatestart":"","timedateend":"","propertyStart":"","propertyStartType":"none","propertyStartCompare":"true","propertyStartThreshold":"","propertyStartThresholdType":"num","startTimeAlt":"","startTimeAltType":"entered","startOffsetAlt":0,"startOffsetAltType":"none","startOffsetAltMultiplier":60000,"propertyEnd":"","propertyEndType":"none","propertyEndCompare":"true","propertyEndThreshold":"","propertyEndThresholdType":"num","endTimeAlt":"","endTimeAltType":"entered","endOffsetAlt":0,"endOffsetAltType":"none","endOffsetAltMultiplier":60000,"withinTimeValue":"true","withinTimeValueType":"msgInput","outOfTimeValue":"false","outOfTimeValueType":"msgInput","tsCompare":"0","x":850,"y":520,"wires":[["e8552963317e863f"],["50ad4f4b149e9a8a"]]},{"id":"fc8d492dddf5f364","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_off","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1030,"y":800,"wires":[[]]},{"id":"e8552963317e863f","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - ON","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_on","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1120,"y":520,"wires":[["a0b5bb1f5c6f4419"]]},{"id":"08d7bad3b19dbc05","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature Source","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"21","halt_if_type":"num","halt_if_compare":"lte","entity_id":"sensor.livingroom_temperature_current_temperature","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":570,"y":400,"wires":[["0c391e39dec03bdf"],["c26e69d6c76b8165"]]},{"id":"2eb32022990c0446","type":"inject","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":100,"wires":[["de6ce8dc14655cf0"]]},{"id":"e6acd9b759a3ec49","type":"inject","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"300","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":680,"wires":[["309b7c6ac3c30164"]]},{"id":"98606482b7e6886c","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature Source","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"21","halt_if_type":"num","halt_if_compare":"gte","entity_id":"sensor.livingroom_temperature_current_temperature","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":730,"y":800,"wires":[["fc8d492dddf5f364"],[]]},{"id":"a31b8c5921c077f2","type":"comment","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Monday - Friday","info":"","x":860,"y":340,"wires":[]},{"id":"e8fa825c28a14aef","type":"comment","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Saturday - Sunday","info":"","x":870,"y":480,"wires":[]},{"id":"1f4a75c54a4a84db","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Craig - Not_Home","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.craigs_iphone","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":550,"y":640,"wires":[["9012cec5c5bd6032"],[]]},{"id":"8e2ae227322c26af","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Lizzie - Not_Home","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.lizzie_iphone","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":550,"y":720,"wires":[["9012cec5c5bd6032"],[]]},{"id":"9012cec5c5bd6032","type":"change","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"not_home","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":680,"wires":[["98606482b7e6886c"]]},{"id":"309b7c6ac3c30164","type":"change","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":680,"wires":[["1f4a75c54a4a84db","8e2ae227322c26af"]]},{"id":"de6ce8dc14655cf0","type":"change","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":100,"wires":[["31567fbe9ee40db7","758f4358680306aa"]]},{"id":"31567fbe9ee40db7","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Craig - Home","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.craigs_iphone","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":500,"y":60,"wires":[["975459d7a492de95"],[]]},{"id":"758f4358680306aa","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Lizzie - Home","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.lizzie_iphone","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":500,"y":140,"wires":[["975459d7a492de95"],[]]},{"id":"975459d7a492de95","type":"change","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"home","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":100,"wires":[["7583cacb709e2e48"]]},{"id":"50ad4f4b149e9a8a","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_off","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1130,"y":580,"wires":[[]]},{"id":"484a7257584fb564","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Override Livingroom Heating - Boost ON","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.tado_livingroom_heating_boost","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":220,"y":300,"wires":[["b2bbdbd4694f55ae"],["08d7bad3b19dbc05"]]},{"id":"e674b15df777d335","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Override Livingroom Heating - Turn ON","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.tado_livingroom_heating_off","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1200,"y":120,"wires":[["5f4bed738dc6d313"],["484a7257584fb564"]]},{"id":"5f4bed738dc6d313","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_off","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":190,"y":200,"wires":[["cc564a04956c6993"]]},{"id":"5483336e87024d21","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Set Livingroom Temprature - Boost 25","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"set_temperature","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"{\"temperature\":25}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":850,"y":260,"wires":[["0a20bad0ccd7cf68"]]},{"id":"0a20bad0ccd7cf68","type":"trigger","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"60 Minute Timer","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"60","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1100,"y":260,"wires":[["db7ea77ad5b4ac25"]]},{"id":"e6418e8e3b655502","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Override Livingroom Heating - Boost OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["input_boolean.tado_livingroom_heating_boost"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1640,"y":260,"wires":[[]]},{"id":"b2bbdbd4694f55ae","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - ON","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_on","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":560,"y":260,"wires":[["5483336e87024d21"]]},{"id":"db7ea77ad5b4ac25","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_off","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1330,"y":260,"wires":[["e6418e8e3b655502"]]},{"id":"a0b5bb1f5c6f4419","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Set Livingroom Temprature - Boost 21","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"set_temperature","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"{\"temperature\":21}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1430,"y":520,"wires":[[]]},{"id":"d93915df5a1f5cc6","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Set Livingroom Temprature -  21","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"set_temperature","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"{\"temperature\":21}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1570,"y":440,"wires":[[]]},{"id":"c26e69d6c76b8165","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_off","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":570,"y":480,"wires":[[]]},{"id":"cc564a04956c6993","type":"trigger","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"60 Minute Timer","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"60","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":440,"y":200,"wires":[["248d1936fc68984a"]]},{"id":"248d1936fc68984a","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Override Livingroom Heating - Turn OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["input_boolean.tado_livingroom_heating_off"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":700,"y":200,"wires":[[]]},{"id":"7583cacb709e2e48","type":"api-current-state","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Open Window Detection","server":"fe0fc272.cbcc2","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.livingroom_tuya_window_sensor_contact","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":890,"y":60,"wires":[["f559f0186569506d"],["e674b15df777d335"]]},{"id":"f559f0186569506d","type":"api-call-service","z":"172a1b8c897e3391","g":"616dca7f1eba2cdc","name":"Livingroom Temprature - OFF","server":"fe0fc272.cbcc2","version":5,"debugenabled":false,"domain":"climate","service":"turn_off","areaId":[],"deviceId":[],"entityId":["climate.livingroom_temperature"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1170,"y":60,"wires":[[]]},{"id":"fe0fc272.cbcc2","type":"server","name":"McHome Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false},{"id":"6d1d5c66bea34100","type":"position-config","name":"","isValide":"true","angleType":"deg","timeZoneOffset":99,"timeZoneDST":0,"stateTimeFormat":"3","stateDateFormat":"12","contextStore":""}]

It is a bit much to take in, but the set msg.payload nodes in the beginning of the flows should be possible to just add in the inject nodes instead.

Another thing is that when you split the flow, like in the first set msg.payload nodes, then you get two separate flows. When you then connect the two flows to the next set msg.payload node, then it will not be combined to one flow again, but it will first react to first flow that hits the node and then react to the second flow when that hits same node. The second flow hitting the node might be overriding the first flows setting.
I am not sure if that have any significance on your flow, but you need to think it in.

Your first inject node runs once a minute, so (for example) your step 2 will keep turning the heater off every minute. I’d be inclined to instead use an events: state node to trigger a flow when the window is opened, and turn the heater off. And have a “heater on” flow to ignore if the window is open, etc.

Similarly, a separate flow triggered by your heater override going on, to turn the heater off and start a HA timer for 60 minutes. When the timer finishes, turn the heater back on subject to your requirements. And another separate flow triggered by the heater boost using the same approach.

And for when you’re not home, trigger a flow based on zone.home going to zero. Your current code turns the heater off if either of you are not home, but I assume you only want this to happen if you’re both not home.

This will split it into multiple smaller flows which would be easier to understand.