Hi!
I set up something which should set the temperature of several radiators in different rooms based on presence and time in node-red:
[{"id":"2f5951b90e8bf17c","type":"tab","label":"Heating","disabled":false,"info":""},{"id":"b6a4d59abb2b1c54","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Temperature | Hannahs Room","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.heizkorper_hannahs_zimmer_heating_1","data":"{\"temperature\": {{payload}}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2000,"y":360,"wires":[[]]},{"id":"afe5bbbbefe72746","type":"light-scheduler","z":"2f5951b90e8bf17c","settings":"f50788c8abb772f2","events":"[{\"start\":{\"dow\":1,\"mod\":360},\"end\":{\"dow\":1,\"mod\":1260}},{\"start\":{\"dow\":4,\"mod\":360},\"end\":{\"dow\":4,\"mod\":1260}},{\"start\":{\"dow\":2,\"mod\":360},\"end\":{\"dow\":2,\"mod\":1260}},{\"start\":{\"dow\":3,\"mod\":360},\"end\":{\"dow\":3,\"mod\":1260}},{\"start\":{\"dow\":5,\"mod\":360},\"end\":{\"dow\":5,\"mod\":1260}},{\"start\":{\"dow\":6,\"mod\":360},\"end\":{\"dow\":6,\"mod\":1260}},{\"start\":{\"dow\":0,\"mod\":360},\"end\":{\"dow\":0,\"mod\":1260}}]","topic":"","name":"Day / Night Kids","onPayload":"23","onPayloadType":"num","offPayload":"18","offPayloadType":"num","onlyWhenDark":false,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.statechange","x":1340,"y":80,"wires":[["f2c07e85a9602f34","25bdfc68ce5d4d36"]]},{"id":"726460e9362826e4","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Temperature | Lenas Room","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.heizkorper_lenas_zimmer_heating_1","data":"{\"temperature\": {{payload}}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1990,"y":420,"wires":[[]]},{"id":"7c1be1ae114c9ea1","type":"light-scheduler","z":"2f5951b90e8bf17c","settings":"f50788c8abb772f2","events":"[{\"start\":{\"dow\":1,\"mod\":360},\"end\":{\"dow\":2,\"mod\":0}},{\"start\":{\"dow\":4,\"mod\":360},\"end\":{\"dow\":5,\"mod\":0}},{\"start\":{\"dow\":2,\"mod\":360},\"end\":{\"dow\":3,\"mod\":0}},{\"start\":{\"dow\":3,\"mod\":360},\"end\":{\"dow\":4,\"mod\":0}},{\"start\":{\"dow\":5,\"mod\":360},\"end\":{\"dow\":6,\"mod\":0}},{\"start\":{\"dow\":6,\"mod\":360},\"end\":{\"dow\":0,\"mod\":0}},{\"start\":{\"dow\":0,\"mod\":360},\"end\":{\"dow\":1,\"mod\":0}}]","topic":"","name":"Day / Night Sleeping Room","onPayload":"on","onPayloadType":"str","offPayload":"off","offPayloadType":"str","onlyWhenDark":true,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.statechange","x":1380,"y":200,"wires":[["cf1ac6da90653b20"]]},{"id":"e3cb7a5a7cb3e6f1","type":"light-scheduler","z":"2f5951b90e8bf17c","settings":"f50788c8abb772f2","events":"[{\"start\":{\"dow\":1,\"mod\":360},\"end\":{\"dow\":1,\"mod\":540}},{\"start\":{\"dow\":2,\"mod\":360},\"end\":{\"dow\":2,\"mod\":540}},{\"start\":{\"dow\":3,\"mod\":360},\"end\":{\"dow\":3,\"mod\":540}},{\"start\":{\"dow\":4,\"mod\":360},\"end\":{\"dow\":4,\"mod\":540}},{\"start\":{\"dow\":5,\"mod\":360},\"end\":{\"dow\":5,\"mod\":540}},{\"start\":{\"dow\":6,\"mod\":420},\"end\":{\"dow\":6,\"mod\":600}},{\"start\":{\"dow\":0,\"mod\":420},\"end\":{\"dow\":0,\"mod\":600}}]","topic":"","name":"Day / Night Bath Room","onPayload":"23","onPayloadType":"num","offPayload":"20","offPayloadType":"num","onlyWhenDark":false,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.statechange","x":1360,"y":360,"wires":[["ef1dbafdfce5380a"]]},{"id":"0d7fc4b8b2298325","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Temperature | Bath Room","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.heizkorper_badezimmer_heating_1","data":"{\"temperature\": {{payload}}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2270,"y":720,"wires":[[]]},{"id":"ad3392185714df29","type":"light-scheduler","z":"2f5951b90e8bf17c","settings":"f50788c8abb772f2","events":"[{\"start\":{\"dow\":1,\"mod\":360},\"end\":{\"dow\":1,\"mod\":1380}},{\"start\":{\"dow\":4,\"mod\":360},\"end\":{\"dow\":4,\"mod\":1380}},{\"start\":{\"dow\":2,\"mod\":360},\"end\":{\"dow\":2,\"mod\":1380}},{\"start\":{\"dow\":3,\"mod\":360},\"end\":{\"dow\":3,\"mod\":1380}},{\"start\":{\"dow\":5,\"mod\":360},\"end\":{\"dow\":5,\"mod\":1380}},{\"start\":{\"dow\":6,\"mod\":360},\"end\":{\"dow\":6,\"mod\":1380}},{\"start\":{\"dow\":0,\"mod\":360},\"end\":{\"dow\":0,\"mod\":1380}}]","topic":"","name":"Day / Night Living Room","onPayload":"23","onPayloadType":"num","offPayload":"18","offPayloadType":"num","onlyWhenDark":false,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.statechange","x":1370,"y":460,"wires":[["9c62182bd7cafdc2"]]},{"id":"a05ba9c46ff889cc","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Temperature | Living Room","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.temperatur_wohnzimmer","data":"{\"temperature\": {{payload}}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2090,"y":840,"wires":[["b54a5fc7612d8bfb"]]},{"id":"cf1ac6da90653b20","type":"switch","z":"2f5951b90e8bf17c","name":"Heat Yes/No","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1620,"y":180,"wires":[["94a047a9dbfe1ed9"],["c641fb4aac494fe3"]]},{"id":"b08ebe5492c3108d","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Temperature | Sleeping Room","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.heizkorper_schlafzimmer_heating_1","data":"{\"temperature\": {{payload}}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2480,"y":560,"wires":[["7740bd0362e31ac1"]]},{"id":"94a047a9dbfe1ed9","type":"light-scheduler","z":"2f5951b90e8bf17c","settings":"f50788c8abb772f2","events":"[{\"start\":{\"dow\":1,\"mod\":1285},\"end\":{\"dow\":2,\"mod\":0}},{\"start\":{\"dow\":2,\"mod\":1285},\"end\":{\"dow\":3,\"mod\":0}},{\"start\":{\"dow\":3,\"mod\":1285},\"end\":{\"dow\":4,\"mod\":0}},{\"start\":{\"dow\":4,\"mod\":1285},\"end\":{\"dow\":5,\"mod\":0}},{\"start\":{\"dow\":5,\"mod\":1285},\"end\":{\"dow\":6,\"mod\":0}},{\"start\":{\"dow\":6,\"mod\":1285},\"end\":{\"dow\":0,\"mod\":0}},{\"start\":{\"dow\":0,\"mod\":1285},\"end\":{\"dow\":1,\"mod\":0}}]","topic":"","name":"Normal or Evening Boost","onPayload":"23","onPayloadType":"num","offPayload":"20","offPayloadType":"num","onlyWhenDark":false,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.minutely","x":1830,"y":160,"wires":[["01cea63e197f303b","448f606b8919224e"]]},{"id":"c6534c87680a2284","type":"switch","z":"2f5951b90e8bf17c","name":"Set Heating Path","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Away","vt":"str"},{"t":"eq","v":"Vacation","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":670,"y":780,"wires":[["46dd4eef64bc7893"],["9ef1bc05ee5de5c6"]]},{"id":"c641fb4aac494fe3","type":"change","z":"2f5951b90e8bf17c","name":"Set to Night Temperature","rules":[{"t":"set","p":"payload","pt":"msg","to":"18","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1830,"y":220,"wires":[["01cea63e197f303b"]]},{"id":"46dd4eef64bc7893","type":"change","z":"2f5951b90e8bf17c","name":"Set msg.payload to 18","rules":[{"t":"set","p":"payload","pt":"msg","to":"18","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":780,"wires":[["b6a4d59abb2b1c54","726460e9362826e4","b08ebe5492c3108d","0d7fc4b8b2298325","a05ba9c46ff889cc"]]},{"id":"bfc1c0b9302a7d7b","type":"server-state-changed","z":"2f5951b90e8bf17c","name":"","server":"aadbde09.d5ab3","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"group.family","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","propertyType":"msg","value":"","valueType":"entityState"}],"x":160,"y":560,"wires":[["c5ab0a1162a6a90e"]]},{"id":"47be45a3edad054a","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Heating Mode Home","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"input_select","service":"select_option","entityId":"input_select.heating","data":"{\"option\":\"Home\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":730,"y":360,"wires":[[]]},{"id":"67c960fba9e4939e","type":"switch","z":"2f5951b90e8bf17c","name":"Set Heating Mode","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"home","vt":"str"},{"t":"eq","v":"not_home","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":420,"wires":[["47be45a3edad054a"],["f0f328eeaa5acb16"]]},{"id":"f0f328eeaa5acb16","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Heating Mode Away","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"input_select","service":"select_option","entityId":"input_select.heating","data":"{\"option\":\"Away\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":730,"y":440,"wires":[[]]},{"id":"c5ab0a1162a6a90e","type":"api-current-state","z":"2f5951b90e8bf17c","name":"Heating in Holiday Mode?","server":"aadbde09.d5ab3","version":2,"outputs":2,"halt_if":"Holiday","halt_if_type":"str","halt_if_compare":"is_not","entity_id":"input_select.heating","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":560,"wires":[["67c960fba9e4939e"],[]]},{"id":"9ef1bc05ee5de5c6","type":"change","z":"2f5951b90e8bf17c","name":"Set msg.payload to 15","rules":[{"t":"set","p":"payload","pt":"msg","to":"15","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":880,"wires":[["b6a4d59abb2b1c54","726460e9362826e4","b08ebe5492c3108d","0d7fc4b8b2298325","a05ba9c46ff889cc"]]},{"id":"5ab28801c6de856a","type":"server-state-changed","z":"2f5951b90e8bf17c","name":"Heating Mode Changed","server":"aadbde09.d5ab3","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.heating","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","propertyType":"msg","value":"","valueType":"entityState"}],"x":240,"y":780,"wires":[["723b0bd26bf8a31c"]]},{"id":"723b0bd26bf8a31c","type":"rbe","z":"2f5951b90e8bf17c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":470,"y":780,"wires":[["c6534c87680a2284"]]},{"id":"2478bbf9b6667f57","type":"api-current-state","z":"2f5951b90e8bf17c","name":"Heating Status = Home","server":"aadbde09.d5ab3","version":2,"outputs":2,"halt_if":"Home","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_select.heating","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":690,"y":680,"wires":[["a716e8d62405f657"],["297a6a792310462a"]]},{"id":"a716e8d62405f657","type":"change","z":"2f5951b90e8bf17c","name":"Set msg.payload to schedule-only","rules":[{"t":"set","p":"payload","pt":"msg","to":"schedule-only","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":640,"wires":[["afe5bbbbefe72746","7c1be1ae114c9ea1","e3cb7a5a7cb3e6f1","ad3392185714df29"]]},{"id":"721183cd349744cb","type":"inject","z":"2f5951b90e8bf17c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":true,"onceDelay":"1","topic":"","payloadType":"date","x":470,"y":680,"wires":[["2478bbf9b6667f57"]]},{"id":"01cea63e197f303b","type":"rbe","z":"2f5951b90e8bf17c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":2050,"y":200,"wires":[["b08ebe5492c3108d"]]},{"id":"f2c07e85a9602f34","type":"rbe","z":"2f5951b90e8bf17c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1510,"y":40,"wires":[["b6a4d59abb2b1c54"]]},{"id":"9c62182bd7cafdc2","type":"rbe","z":"2f5951b90e8bf17c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1570,"y":460,"wires":[["a05ba9c46ff889cc"]]},{"id":"25bdfc68ce5d4d36","type":"rbe","z":"2f5951b90e8bf17c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1500,"y":100,"wires":[["726460e9362826e4"]]},{"id":"b54a5fc7612d8bfb","type":"api-call-service","z":"2f5951b90e8bf17c","name":"Set Temperature | Main Heating","server":"aadbde09.d5ab3","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.zentralheizung","data":"{\"temperature\": {{payload}}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2410,"y":840,"wires":[[]]},{"id":"ef1dbafdfce5380a","type":"rbe","z":"2f5951b90e8bf17c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1650,"y":360,"wires":[["0d7fc4b8b2298325"]]},{"id":"297a6a792310462a","type":"change","z":"2f5951b90e8bf17c","name":"Set msg.payload to stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":680,"wires":[["afe5bbbbefe72746","7c1be1ae114c9ea1","e3cb7a5a7cb3e6f1","ad3392185714df29"]]},{"id":"7740bd0362e31ac1","type":"debug","z":"2f5951b90e8bf17c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":2800,"y":560,"wires":[]},{"id":"448f606b8919224e","type":"debug","z":"2f5951b90e8bf17c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":2130,"y":100,"wires":[]},{"id":"aadbde09.d5ab3","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"f50788c8abb772f2","type":"light-scheduler-settings","name":"Home","latitude":"48.100645","longitude":"16.305638"}]
The thing is, for the part where mode = Home, I can not set the temperature only if it changes.
Currently I’m using the rbe filter but this does not work here.
If I switch from Home to Away and the back to Home, while the Light Schedulers didn’t change their output, the temperature will not be set.
How can I make the home assistant values change, only if they don’t have the same value at the moment?
Thanks!