mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 10:26: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):
|
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
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
# Turns on bedroom light at the time specifiedateutomadate:
|
# Turns on bedroom light at the time specified.
|
||||||
trigger:
|
trigger:
|
||||||
platform: template
|
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
|
- service: light.turn_on
|
||||||
entity_id: light.bedroom
|
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:
|
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