Skip to content

Instantly share code, notes, and snippets.

@AkdM
Last active April 1, 2024 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AkdM/e62a45747aa3ebb727537589800980e8 to your computer and use it in GitHub Desktop.
Save AkdM/e62a45747aa3ebb727537589800980e8 to your computer and use it in GitHub Desktop.
Tado Heating Away Mode toggle with Home Assistant
homekit: !include configurations/homekit.yaml
switch: !include configurations/switches.yaml
- name: HASS Homekit Bridge
mode: bridge
port: 21063
filter:
include_entities:
- switch.tado_away_mode # <- to add if needed
# 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