Automatic (open and close after time) different windows - Tado and Velux

Hello,

I’m still pretty new to Home Assistant.

I want to solve the following:

In one room there are 3 skylights (electric) and 2 thermostats for the radiators.

Now I would like to achieve the following:

When a window is open, the thermostats (valves) on the radiator should close. Regardless of which window is open.
After closing, the heating should switch on again automatically.

Tado and Velux are in use.
How do I implement this when it comes to checking the windows so that it can be determined which window is currently open.

It would also be great if you could configure the window or windows to close automatically after a certain time (example: 30 minutes).

Use the search function or take a look at this Blueprint

Thanks for the tip. i´ll try it…

Unfortunately, the blueprint didn’t work as well as I wanted.
Now I have solved it like this for myself:

I have 3 roof windows that can be opened independently and 2 radiators with thermostats (and a higher-level thermostat)

It is now checked whether windows are open, then the heating is turned off. When closing, check whether everything is closed, then turn on the heating.

alias: Dachfenster AUF
description: “”
triggers:

  • device_id: 249d402a6ba949ca23833d494919b1f9
    domain: cover
    entity_id: af08c4166128fff161c55af69521b1fd
    type: opened
    trigger: device
  • device_id: 54fe0ffcf4895b7e1961d22adad1e742
    domain: cover
    entity_id: d43c14bc08c29131c7784b820cce01d6
    type: opened
    trigger: device
  • device_id: a7b18c18aef4468243bc06563aaf63c9
    domain: cover
    entity_id: 9f457613300bce24d6c655addec47e8b
    type: opened
    trigger: device
    conditions:
  • condition: or
    conditions:
    • condition: device
      device_id: 249d402a6ba949ca23833d494919b1f9
      domain: cover
      entity_id: af08c4166128fff161c55af69521b1fd
      type: is_position
      above: 1
    • condition: device
      device_id: 54fe0ffcf4895b7e1961d22adad1e742
      domain: cover
      entity_id: d43c14bc08c29131c7784b820cce01d6
      type: is_position
      above: 1
    • condition: device
      device_id: a7b18c18aef4468243bc06563aaf63c9
      domain: cover
      entity_id: 9f457613300bce24d6c655addec47e8b
      type: is_position
      above: 1
      actions:
  • device_id: f8a311734e1c323aa323f914c05370a6
    domain: climate
    entity_id: 66834bc4088bcdc2512257f3175d81e2
    type: set_hvac_mode
    hvac_mode: “off”
    mode: single

And that’s for checking whether all windows are closed, then setting the heating to AUTO.
Triggered when any window is closed.

alias: Dachfenster ZU
description: “”
triggers:

  • device_id: 249d402a6ba949ca23833d494919b1f9
    domain: cover
    entity_id: af08c4166128fff161c55af69521b1fd
    type: closed
    trigger: device
  • device_id: 54fe0ffcf4895b7e1961d22adad1e742
    domain: cover
    entity_id: d43c14bc08c29131c7784b820cce01d6
    type: closed
    trigger: device
  • device_id: a7b18c18aef4468243bc06563aaf63c9
    domain: cover
    entity_id: 9f457613300bce24d6c655addec47e8b
    type: closed
    trigger: device
    conditions:
  • condition: and
    conditions:
    • condition: device
      device_id: 249d402a6ba949ca23833d494919b1f9
      domain: cover
      entity_id: af08c4166128fff161c55af69521b1fd
      type: is_closed
    • condition: device
      device_id: 54fe0ffcf4895b7e1961d22adad1e742
      domain: cover
      entity_id: d43c14bc08c29131c7784b820cce01d6
      type: is_closed
    • condition: device
      device_id: a7b18c18aef4468243bc06563aaf63c9
      domain: cover
      entity_id: 9f457613300bce24d6c655addec47e8b
      type: is_closed
      actions:
  • device_id: f8a311734e1c323aa323f914c05370a6
    domain: climate
    entity_id: 66834bc4088bcdc2512257f3175d81e2
    type: set_hvac_mode
    hvac_mode: auto
    mode: single

Glad you got something that works.
You can create a helper that combines the states of the window such that it’s true if one of more windows are open and false if all are closed. This will simply your automation.
Another thing you should consider is to use scenes for the heater/ac. When a window is opened you create a scene with your heater/ac device which you then restore once the windows are closed again.
In your implementation I don’t think the thermostat will return to the same settings (temperature) when windows are closed
Finally - you should also consider the scenario where a window is open and someone turns on the heater/ac. In that scenario your heater will continue to heat.

Thank you for the tips from the helpers.
Unfortunately, I’m not that good with Home Assistant yet, but I’ll get there.

With my automation, the heating then returns to its original state, i.e. back to the valid time program with the setpoints.

There are only two of us who don’t control the thermostats by hand.