Smart Heating Automation (Tado + Aqara Contact Sensors + Home Assistant)

Опубликовано: 26 Январь 2025
на канале: VP Smart Tech
3,849
35

This automation will turn off the heating if a window is open and turn it back on if it's closed again.

This is possible with Tado thermostats and Aqara contact sensors which are connected via Home Assistant.

If you want to support me, you can buy me a coffee at https://ko-fi.com/vp_smart_tech

Here is how the automation code looks in Home Assistant:

alias: Bathroom Window open/close
description: ''
trigger:
type: opened
platform: device
device_id: 123
entity_id: binary_sensor.window
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
id: window_opened
type: not_opened
platform: device
device_id: 123
entity_id: binary_sensor.window
domain: binary_sensor
id: window_closed
condition: []
action:
choose:
conditions:
condition: trigger
id: window_opened
sequence:
device_id: 456
domain: climate
entity_id: climate.bathroom
type: set_hvac_mode
hvac_mode: 'off'
conditions:
condition: trigger
id: window_closed
sequence:
device_id: 456
domain: climate
entity_id: climate.bathroom
type: set_hvac_mode
hvac_mode: auto
default: []
mode: single