Corrected template (#10982)

Changed the `timestamp_custom' local_boolean to `true` as the template was formatted to return a UTC time and compare it to a local time from `sensor.time`.
This commit is contained in:
tomlut 2019-10-25 20:31:00 +11:00 committed by Franck Nijhof
parent 02e6459635
commit 403c226601

View File

@ -107,7 +107,7 @@ automation (note that you will need a
automation:
trigger:
platform: template
   value_template: "{{ states('sensor.time') == (state_attr('input_datetime.bedroom_alarm_clock_time', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
   value_template: "{{ states('sensor.time') == (state_attr('input_datetime.bedroom_alarm_clock_time', 'timestamp') | int | timestamp_custom('%H:%M', True)) }}"
 action:
service: light.turn_on
entity_id: light.bedroom