Time pattern trigger

I would like to set the time pattern trigger in a trigger to trigger an automation every 10 minutes over a 2 hour period. Since my automation is a bit larger, I don’t want to create multiple triggers (like in the example). Or is it possible to group the triggers? Or can I write everything in one trigger? I don’t want to work with a condition because otherwise the trigger will always fire in the remaining 22 hours.

Example:
Hour: 9
Minute: /10

Hour: 10
Minutes: 10

Any 2 hours or 2 specific hours?

If any 2 hours, what starts the 2 hour window?

Is it 2 hours after a “start” is pressed and every 10 minutes for 11 subsequent times? …or is it always 10 past, 20 past…?

Why not?

You can give them the same ID so that you can use that as criteria in choose or if/then actions.

Or you could use a template trigger:

platform: template
value_template: "{{ now().hour in [9,10] and now().minute % 10 == 0 }}"

I created an automation that controls my entire house (North side, South side, West side, East side) in one automation. The sun, temperature, lux values ​​are conditions. Unfortunately, the entire automation becomes a bit confusing.

Post the automation.

Also, is it the same automation that inspired you to create this Feature Request?

This should work in combination with the rest of your automation, for 09:00 to 10:50 operation:

trigger:
  - platform: time_pattern
    minutes: "/10"
    id: ten_mins
condition:
  - or:
    - "{{ trigger.id == "ten_mins" and now().hour in (9,10) }}"
    - "{{ trigger.id != "ten_mins" }}"

It would have helped if you’d posted the rest of the automation: there may be a cleaner solution.

alias: example 
trigger:
  - platform: time_pattern
    hours: 9
    minutes: /10
  - platform: time_pattern
    hours: 10
    minutes: /10
condition: []
action:
  ... your actions ...
mode: single 
3 Likes