Update input_datetime.markdown (#4735)

Missed the word 'automation' out of the first automation when I submitted the most recent change!  Fixed now.
This commit is contained in:
Marc Forth 2018-02-23 00:08:17 +00:00 committed by Alok Saboo
parent 4144fb0974
commit 51e4cfae9c

View File

@ -93,11 +93,12 @@ 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
service: light.turn_on
entity_id: light.bedroom
```
{% endraw %}