You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/input_datetime.markdown
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,10 @@ This component provides a service to modify the state of the `input_datetime`.
89
89
90
90
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):
91
91
92
-
92
+
{% raw %}
93
93
```yaml
94
94
# Example configuration.yaml entry
95
-
# Turns on bedroom light at the time specifiedateutomadate:
95
+
# Turns on bedroom light at the time specified.
96
96
trigger:
97
97
platform: template
98
98
@@ -101,6 +101,7 @@ The following example shows the usage of the `input_datetime` as a trigger in an
101
101
- service: light.turn_on
102
102
entity_id: light.bedroom
103
103
```
104
+
{% endraw %}
104
105
105
106
To dynamically set the `input_datetime` you can call `input_datetime.set_datetime`. The following example can be used in an automation rule:
0 commit comments