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')) }}"