The AVM Fritz! climate devices (like FRITZ!DECT 301) feature a “window open mode” that turns off the thermostat for a specified time when a window is detected as open.
The [AVM FRITZ!SmartHome - Home Assistant](https://AVM FRITZ!SmartHome) integration should offer a service to set the window open mode for a specific device and a time.
The Python Library (hthiery/python-fritzhome) already supports “Set WindowOpen”.
This Set Window Open should be made available as a service in Home-Assistant as part of the Fritz SmartHome Integration
Existing Workaround and their issues:
Use Automations
One might suggest to use an automation to turn off the climate device when a window is open, and turn it back on when the window is closed. But this approach has some issues:
The thermostate might have a scheduled temperature change, in this case, it would turn back on while the window is open.
Also, the device display is able to indicate the “window open mode”, including the end time. This feature would be lost when turning off the device.
Use NodeRed node-red-contrib-fritzapi
NodeRed does expose the window-Open mode, and it works in general.
However, there are authentication issues, when Node Red and the Home-Assistant integration are used in parallel. When one tool logs in to the FritzBox, the other gets logged out. So, using both tools makes the entire integration less reliable.