To do this, you need so-called scenes, which you can program under "SMART". These are automations that work according to the "if-then" principle. Here is an example:
Example of schedules:
Schedule from 07:00 to 16:00 -> temperature 23°
Schedule from 16:00 to 22:00 -> temperature 26°
Schedule from 22:00 to 07:00 -> temperature 18°
1st automation = window open
If window contact open -> Then heating to 10°
2nd automation = window closed 07-16 o'clock
If window contact closed -> Then heating 23°
Set validity range from 07:00 - 16:00
3. automation = window to 16-22 o'clock
If window contact closed -> Then heating 26°
Set validity range from 16:00 - 22:00
4. automation = window to 22-07 o'clock
If window contact closed -> Then heating 18°
Set validity range from 22:00 - 07:00
With these automations, the radiator thermostat always adopts the temperature that corresponds to the current schedule.
A "Window closed" automation must be created for each schedule. The "Window open" automation is sufficient once.