Skip to content

Instantly share code, notes, and snippets.

@AkdM
Last active April 1, 2024 12:03
Show Gist options
  • Save AkdM/e62a45747aa3ebb727537589800980e8 to your computer and use it in GitHub Desktop.
Save AkdM/e62a45747aa3ebb727537589800980e8 to your computer and use it in GitHub Desktop.

Revisions

  1. AkdM revised this gist Apr 1, 2024. 1 changed file with 12 additions and 4 deletions.
    16 changes: 12 additions & 4 deletions configurations-switches.yaml
    Original file line number Diff line number Diff line change
    @@ -7,21 +7,29 @@
    - platform: template
    switches:
    tado_away_mode:
    value_template: "{{ is_state('sensor.heating_tado_mode', 'AWAY') }}"
    value_template: "{{ is_state('sensor.maisonere_tado_mode', 'AWAY') }}"
    turn_on:
    - service: climate.set_preset_mode
    target:
    entity_id: climate.heating
    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: "Maison"
    title: "Maisson"
    message: "Chauffage: Mode absent"
    turn_off:
    - service: climate.set_preset_mode
    target:
    entity_id: climate.heating
    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
  2. AkdM created this gist Apr 1, 2024.
    6 changes: 6 additions & 0 deletions configuration.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@

    homekit: !include configurations/homekit.yaml
    switch: !include configurations/switches.yaml

    9 changes: 9 additions & 0 deletions configurations-homekit.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@

    - name: HASS Homekit Bridge
    mode: bridge
    port: 21063
    filter:
    include_entities:
    - switch.tado_away_mode # <- to add if needed
    30 changes: 30 additions & 0 deletions configurations-switches.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    # 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.heating_tado_mode', 'AWAY') }}"
    turn_on:
    - service: climate.set_preset_mode
    target:
    entity_id: climate.heating
    data:
    preset_mode: away
    - service: notify.notify
    data:
    title: "Maison"
    message: "Chauffage: Mode absent"
    turn_off:
    - service: climate.set_preset_mode
    target:
    entity_id: climate.heating
    data:
    preset_mode: home
    - service: notify.notify
    data:
    title: "Maison"
    message: "Chauffage: Mode maison"