Last active
April 1, 2024 12:03
-
-
Save AkdM/e62a45747aa3ebb727537589800980e8 to your computer and use it in GitHub Desktop.
Tado Heating Away Mode toggle with Home Assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… | |
homekit: !include configurations/homekit.yaml | |
switch: !include configurations/switches.yaml | |
… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… | |
- name: HASS Homekit Bridge | |
mode: bridge | |
port: 21063 | |
filter: | |
include_entities: | |
- switch.tado_away_mode # <- to add if needed | |
… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# configurations/switches.yaml | |
# More informations at: https://www.home-assistant.io/integrations/switch.template/ | |
# Tado Heating - Away Mode Toggle | |
# On: away mode | |
# Off: home mode | |
- platform: template | |
switches: | |
tado_away_mode: | |
value_template: "{{ is_state('sensor.maisonere_tado_mode', 'AWAY') }}" | |
turn_on: | |
- service: climate.set_preset_mode | |
target: | |
entity_id: # From my tests, you only need to provide the climate of only one Tado device | |
- climate.salon | |
- climate.chambre | |
- climate.cuisine | |
- climate.salle_de_bain | |
data: | |
preset_mode: away | |
- service: notify.notify | |
data: | |
title: "Maisson" | |
message: "Chauffage: Mode absent" | |
turn_off: | |
- service: climate.set_preset_mode | |
target: | |
entity_id: # From my tests, you only need to provide the climate of only one Tado device | |
- climate.salon | |
- climate.chambre | |
- climate.cuisine | |
- climate.salle_de_bain | |
data: | |
preset_mode: home | |
- service: notify.notify | |
data: | |
title: "Maison" | |
message: "Chauffage: Mode maison" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment