I want to create an automation for my rooms with door/windows sensors to set the thermostats in the room in eco mode and back to the state before the window was opened.
My window sensors are named as binary_sensor.fenster_{roomname} and my thermostates are named like climate.{roomname/groupname}
@PeteRage Well I even thought about this (I’m a developer so this wouldn’t be too hard for me) but I would prefer a yaml only solution within HA. But this could be my emergency solution if nothing else works
Naming shouldn’t bre a big problem here imho. I use the numeric state trigger because that was a neat solution by another guy here in the forum for another usecase.
I can’t see how that is “neater” than using on/off as the state is. In my opinion it just makes it harder to read.
But if it works then go ahead.
I guess there pretty neat hints mentioned by @Didgeridrew and @Hellis81. But there is one problem which I haven’t adressed or not outlined correctly:
When I open my window of the bathroom while beeing in eco mode the thermostat should be reverted into that mode again.
Can I retrieve the current preset_mode and store them to revert them back later?
Yeah, there is an edge case when opening the windows in eco mode and closing them in comfort mode (which could be the case because the schedules are on my Fritz!Box) but that could be ignored I guess.