Files
N22/include/automations/vacation_recovery.yaml
T
clausandCopilot bf4395c441 Gæstetilstand, lys/gardin-justeringer, varme-standardværdier og vanding
- Gæstetilstand: ny gaester.yaml, udvidet guest_mode og guest_automations_off;
  lys_stue, gardiner m.fl. respekterer input_boolean.gaester
- Varme: nye standardværdier (komfort stue/andreas/daniel, bryggers/køkken 23,
  nat-/væk-sænkning)
- Nye filer: garage_anne_evening.yaml, input/boolean/vanding.yaml
- Diverse justeringer af lys-, ferie- og vandingsautomationer samt dashboards
- HA-version og mealie.json opdateret

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-08 13:10:53 +01:00

29 lines
862 B
YAML

- alias: Vacation Mode - Recovery efter restart
trigger:
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: "on"
action:
- choose:
- conditions:
- condition: template
value_template: >
{% set dt = states('input_datetime.vacation_end') %}
{{ dt not in ['unknown','unavailable',''] and
as_timestamp(now()) >= as_timestamp(dt) }}
sequence:
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.vacation_mode
- input_boolean.presence_simulation
default:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.presence_simulation