From 0ad4f914a472cebe25a4dd70d57bad545e4a4630 Mon Sep 17 00:00:00 2001 From: Marc Forth Date: Tue, 20 Feb 2018 13:10:05 +0000 Subject: [PATCH] Update input_datetime.markdown --- source/_components/input_datetime.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/input_datetime.markdown b/source/_components/input_datetime.markdown index 1ed907e1839..cd425a54737 100644 --- a/source/_components/input_datetime.markdown +++ b/source/_components/input_datetime.markdown @@ -95,7 +95,7 @@ The following example shows the usage of the `input_datetime` as a trigger in an # Turns on bedroom light at the time specified. trigger: platform: template -    value_template: "{{ states('sensor.time') == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom("%H:%M", False)) }}" +    value_template: "{{ states('sensor.time') == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"  action: - service: light.turn_on entity_id: light.bedroom