mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 09:56:52 +00:00
Update input_datetime.markdown
This commit is contained in:
parent
e081ef352a
commit
a33ed1d11f
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user