mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update input_datetime.markdown (#4735)
Missed the word 'automation' out of the first automation when I submitted the most recent change! Fixed now.
This commit is contained in:
parent
4144fb0974
commit
51e4cfae9c
@ -93,12 +93,13 @@ The following example shows the usage of the `input_datetime` as a trigger in an
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
# Turns on bedroom light at the time specified.
|
# Turns on bedroom light at the time specified.
|
||||||
|
automation:
|
||||||
trigger:
|
trigger:
|
||||||
platform: template
|
platform: template
|
||||||
value_template: "{{ states('sensor.time') == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
|
value_template: "{{ states('sensor.time') == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
service: light.turn_on
|
||||||
entity_id: light.bedroom
|
entity_id: light.bedroom
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user