mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update input_datetime.markdown
This commit is contained in:
parent
7374aa5aef
commit
0ad4f914a4
@ -95,7 +95,7 @@ The following example shows the usage of the `input_datetime` as a trigger in an
|
|||||||
# Turns on bedroom light at the time specified.
|
# Turns on bedroom light at the time specified.
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user