Trigger automation with time pattern

Hi,

I am trying to run a script whenever the current time is equal to a defined time but the script are never being started even though the times are equal. I have put the value template into the template editor and it return true when the times are equal. I have tested the script and it is working when I trigger it from other automations. Running hassio 0.96.4 in docker on a RPI. I am using automations.yaml for all automations.
Hope anyone will be able to help…

Karsten

- id: zone1_activate
  alias: "Activate Zone 1 Timer"
  trigger:
    platform: time_pattern
    minutes: '/1'
  condition:
    condition: template
    value_template: '{{ now().strftime("%H:%M") == states.sensor.zone1_start_time.state }}'
  action:
    service: script.turn_on
    entity_id: script.zone1_activate

Why not use something more comfortable.

1 Like

Thanks for your help it worked as in your link and more simple than what I tried cook up…