From 8884cd123aa6a7681d1645c858482fb1dc374188 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 12 Sep 2023 12:20:41 -0400 Subject: [PATCH] Vacation tweaks, close #125 --- packages/presence.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/presence.yaml b/packages/presence.yaml index 6ba09bb..1124f77 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -782,7 +782,7 @@ automation: {% from 'time.jinja' import ct %} {% set begin = state_attr('input_datetime.audible_notification_on','timestamp') %} {% set end = state_attr('input_datetime.audible_notification_off','timestamp') %} - {% set ct = ct() %} + {% set ct = ct() | int %} {{ begin < ct < end }} then: - service: input_boolean.turn_on @@ -815,7 +815,7 @@ automation: - condition: trigger id: night-off sequence: - - service: light.turn_on + - service: light.turn_off target: entity_id: light.front_porch_light