Automation with button trigger to run device when current temp state is lower for 1.5 degree from temperature

Hello,
Currently im trying to create automatation triggered with button (permanently when button is toggled to on) to start reading current temperatures on every radiator theermostat (TS0601 Zigbee) on specific flor and corelate that with read temperature. If current temp is lower on that radiator then “temperature” more then 1.5 degree then set heater thermostat (Hysen HY02/HY03)to manual and set themperature on it ie. 25 degrees.
When switch is not toggled on then whole autmatation is off.

I’ve made a switch in helpers and created two sensors (from climate. one for “current temperature” and second sensor for “temperature”. Now i created automatation wich is triggered when switch is change to on (will it work permanently or just one?)
now i dont know how to write in xml corelation betwheen two states of TS0601. May i ask for any assistance here?

Becouse i wrote it unclearly so heres my setup:
Gas heater for whole home (few floors) controlled by Hysen Hy02/Hy03.
On floor witch is usually unused i placed on every radiator zigbee thermostat TS0601 which shows temperatures: current in near room and also temperature setting.

Hysen thermostat is usually operating in automatic option - set temperatures are different on every period of day and are correlating to Hysen thermostat temp sensor which stays in place where usually is warmer then unused floor.

My aim is to create automatation when i can trigger by button to turn on manual control of gas heater (thru setting this hysen controller) to ie. heat whenever one of radiator will get 1.5 lower temp in room (by ie setting o hysen 26 degrees - it will force heating even if hysen controller is sensing 21-22 degrees) and then set it back to automatic (with 21 degrees set) when tempeture sensed by radiator thermostat will achieve setted one.

I want to do the automatation for every five radiators (every radiotor has same zigbee thermostat and some of them got different temperature set (ie. bedroom 19, salloon 21,5, kitchen 20,5) on that floor and i would like this whole stuff to be triggered by one button to turn this on and off whenever i am going to this apartment or not

I belive i should open this topic in frontend section since its not zigbee only case. As I right?

You can change the threads labels if you want to, you don’t need to start another thread.

But, I think the bigger issue is that it isn’t real clear what you are trying to do. Are there both a TRV and secondary heater controlled by a Hysen thermostat in each room, or just one Hysen for the floor, or something else…?

Let’s say you triggered the automation with the Input boolean and it has iterated through the TRV sensor values, and made the changes to Hysen thermostat(s)… what should it do then? Since you only have that one trigger, normally it would stop. But, your wording seems to indicate that you want it to continue adjusting the thermostats. How exactly should that work? Do you have another automation that will turn the Hysen(s) off, or does that need to be handled in this automation?

Thank you for your answer. I’ve added more info since it was unclear. Happy Christmas !