From 51e4cfae9cfdb5837fb55b1834010a25126e13e7 Mon Sep 17 00:00:00 2001 From: Marc Forth Date: Fri, 23 Feb 2018 00:08:17 +0000 Subject: [PATCH] Update input_datetime.markdown (#4735) Missed the word 'automation' out of the first automation when I submitted the most recent change! Fixed now. --- source/_components/input_datetime.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/_components/input_datetime.markdown b/source/_components/input_datetime.markdown index cd425a54737..19898029df3 100644 --- a/source/_components/input_datetime.markdown +++ b/source/_components/input_datetime.markdown @@ -93,12 +93,13 @@ The following example shows the usage of the `input_datetime` as a trigger in an ```yaml # Example configuration.yaml entry # Turns on bedroom light at the time specified. +automation: trigger: platform: template    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 + service: light.turn_on + entity_id: light.bedroom ``` {% endraw %}