From 8046b74c4cfe60ca0b9327256fff7aecb725fcd5 Mon Sep 17 00:00:00 2001 From: thomasvs Date: Tue, 30 Jun 2020 05:01:33 -0400 Subject: [PATCH] Update input_datetime.markdown (#13871) sensor.time is in local time, not UTC. Most people will have an input_datetime for time only in their local time, not UTC. Hence converting the input_datetime to compare with sensor.time in local time *should not* do a timezone conversion. --- 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 c89b15e6b6e..31c723729c1 100644 --- a/source/_integrations/input_datetime.markdown +++ b/source/_integrations/input_datetime.markdown @@ -111,7 +111,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', True)) }}" +    value_template: "{{ states('sensor.time') == (state_attr('input_datetime.bedroom_alarm_clock_time', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"  action: service: light.turn_on entity_id: light.bedroom