mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +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,11 +93,12 @@ The following example shows the usage of the `input_datetime` as a trigger in an
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
# Turns on bedroom light at the time specified.
|
||||
automation:
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: "{{ states('sensor.time') == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
service: light.turn_on
|
||||
entity_id: light.bedroom
|
||||
```
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user