fix presence

This commit is contained in:
2026-03-25 21:06:57 +01:00
parent bef3fc5b4c
commit 0b4fc7f2f4
4 changed files with 124 additions and 54 deletions
+8 -2
View File
@@ -1,13 +1,19 @@
alias: Vacation Mode - Stop ved slutdato
trigger:
- platform: time
at: input_datetime.vacation_end
- platform: time_pattern
minutes: "/1"
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: "on"
- condition: template
value_template: >
{% set dt = states('input_datetime.vacation_end') %}
{{ dt not in ['unknown','unavailable',''] and
now() >= as_datetime(dt) }}
action:
- service: input_boolean.turn_off
target: