@BlunderCig wrote:
Here is my automation to turn on a light at the time of an alarm:
- id: alarm_clock alias: Alarm Clock description: '' trigger: - platform: time_pattern minutes: '/1' seconds: 0 condition: - condition: template value_template: 'value_template: ''{{ states.sensor.time.state == states.sensor.alarm_clock_time_long.state }}''' - condition: state entity_id: input_boolean.alarm_clock_status state: 'on' action: - data: {} entity_id: light.0250750384f3ebfaf29c service: light.turn_on
I have confirmed via the template developer tool that the template does = true when the times match. The issue I am having is getting the automation to trigger. I am thinking I have missed something or messed something up with the time pattern? Any advice on how to make this work would be appreciated.
Posts: 1
Participants: 1