diff --git a/source/_components/input_datetime.markdown b/source/_components/input_datetime.markdown index 19f3a8b5ef9..1b2098bd267 100644 --- a/source/_components/input_datetime.markdown +++ b/source/_components/input_datetime.markdown @@ -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: