From ff26c9ec11499a1c7a68e619020dab08651eb500 Mon Sep 17 00:00:00 2001 From: Kevin Eifinger Date: Sat, 15 May 2021 19:50:14 +0200 Subject: [PATCH] Add echo dot alarm to next_alarm --- packages/next_alarm.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/next_alarm.yaml b/packages/next_alarm.yaml index 4a6af3b..db714a3 100644 --- a/packages/next_alarm.yaml +++ b/packages/next_alarm.yaml @@ -24,6 +24,12 @@ automation: ((as_timestamp(states.sensor.oneplus_a3003_nachster_wecker.state) | int - 7200) | timestamp_custom('%Y-%m-%d, %H:%M', True)) and (states('person.sina') == 'home') }} + - platform: template + value_template: > + {{ states('sensor.date_time') == + ((as_timestamp(states.sensor.kevin_s_echo_dot_schlafzimmer_next_alarm.state) + | int - 7200) | timestamp_custom('%Y-%m-%d, %H:%M', True)) + and (states('person.sina') == 'home') }} action: - service: script.turn_on entity_id: script.warm_bath_before_wakeup