From 627552f3aeccca6aa0cd99b4e7e52868a2d5674c Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 11 Jan 2021 03:11:14 +0100 Subject: [PATCH] Fix alarm-clock automation --- automations/files/alarm-clock.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/automations/files/alarm-clock.yaml b/automations/files/alarm-clock.yaml index a96d7c4..da1ff95 100644 --- a/automations/files/alarm-clock.yaml +++ b/automations/files/alarm-clock.yaml @@ -1,5 +1,5 @@ - id: alarm-automation - alias: [Alarm] Wakeup automation + alias: '[Alarm] Wakeup automation' description: '' trigger: - platform: time @@ -43,7 +43,7 @@ random_song: true mode: single - id: alarm-update-time - alias: [Alarm] Update alarm time + alias: '[Alarm] Update alarm time' mode: single trigger: - platform: state @@ -56,6 +56,6 @@ state: unknown action: - service: input_datetime.set_datetime - entity_id: input_datetime.alarm - data: - datetime: "{{ (((state_attr('sensor.sm_g965f_next_alarm', 'Time in Milliseconds') | int / 1000) - 30*60 ) | timestamp_custom('%Y-%m-%d %H:%M:%S')) }}" + entity_id: input_datetime.alarm + data: + datetime: "{{ (((state_attr('sensor.sm_g965f_next_alarm', 'Time in Milliseconds') | int / 1000) - 30*60 ) | timestamp_custom('%Y-%m-%d %H:%M:%S')) }}"