diff --git a/atom.xml b/atom.xml index 55f9d9d269..eabc464bf8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
The following example shows the usage of the input_datetime
as a trigger in an automation (note that you will need a time sensor elsewhere in your configuration):
# 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
- entity_id: light.bedroom
+ service: light.turn_on
+ entity_id: light.bedroom
To dynamically set the input_datetime
you can call input_datetime.set_datetime
. The following example can be used in an automation rule: