mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
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:
parent
02e6459635
commit
403c226601
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user