Update input_datetime.markdown
This commit is contained in:
parent
be3c0f0f54
commit
7374aa5aef
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ The following example shows the usage of the `input_datetime` as a trigger in an
|
|||
# Turns on bedroom light at the time specified.
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: '{{ states.sensor.time.state == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom("%H:%M", False)) }}'
|
||||
action:
|
||||
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
|
||||
entity_id: light.bedroom
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue