Update input_datetime.markdown

This commit is contained in:
Marc Forth 2018-02-20 11:54:40 +00:00 committed by GitHub
parent e081ef352a
commit a33ed1d11f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,10 @@ This component provides a service to modify the state of the `input_datetime`.
The following example shows the usage of the `input_datetime` as a trigger in an automation (note that you will need a [time sensor](https://home-assistant.io/components/sensor.time_date/) elsewhere in your configuration):
{% raw %}
```yaml
# Example configuration.yaml entry
# Turns on bedroom light at the time specifiedateutomadate:
# Turns on bedroom light at the time specified.
trigger:
platform: template
@ -101,6 +101,7 @@ The following example shows the usage of the `input_datetime` as a trigger in an
- service: light.turn_on
entity_id: light.bedroom
```
{% endraw %}
To dynamically set the `input_datetime` you can call `input_datetime.set_datetime`. The following example can be used in an automation rule: