homeassistant:holiday
Différences
Ci-dessous, les différences entre deux révisions de la page.
| homeassistant:holiday [2026/04/26 09:39] – créée root | homeassistant:holiday [2026/04/26 09:41] (Version actuelle) – root | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| - Créer un Helper pour activer/ | - Créer un Helper pour activer/ | ||
| + | - Dans File editor, modifier le fichier script.yaml <file yaml script.yaml> | ||
| + | alias: " | ||
| + | description: | ||
| + | sequence: | ||
| + | - variables: | ||
| + | lampes_disponibles: | ||
| + | - switch.interrupteur_salon_1 | ||
| + | - switch.interrupteur_salon_2 | ||
| + | - switch.interrupteur_cuisine | ||
| + | nombre_lampes: | ||
| + | lampes_choisies: | ||
| + | duree_minutes: | ||
| + | - service: logbook.log | ||
| + | data: | ||
| + | name: " | ||
| + | message: " | ||
| + | entity_id: "{{ lampes_choisies[0] }}" | ||
| + | - service: switch.turn_on | ||
| + | target: | ||
| + | entity_id: "{{ lampes_choisies }}" | ||
| + | - delay: | ||
| + | minutes: "{{ duree_minutes }}" | ||
| + | - service: switch.turn_off | ||
| + | target: | ||
| + | entity_id: "{{ lampes_choisies }}" | ||
| + | - service: logbook.log | ||
| + | data: | ||
| + | name: " | ||
| + | message: " | ||
| + | entity_id: "{{ lampes_choisies[0] }}" | ||
| + | mode: restart</ | ||
homeassistant/holiday.1777196398.txt.gz · Dernière modification : de root
