From 403c226601de96d6e169c931a5dc548af6a6f607 Mon Sep 17 00:00:00 2001 From: tomlut <10679300+tomlut@users.noreply.github.com> Date: Fri, 25 Oct 2019 20:31:00 +1100 Subject: [PATCH] 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`. --- source/_integrations/input_datetime.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/input_datetime.markdown b/source/_integrations/input_datetime.markdown index 69c7d25143a..4486c0c8392 100644 --- a/source/_integrations/input_datetime.markdown +++ b/source/_integrations/input_datetime.markdown @@ -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