Until recently, this automation worked flawlessly even when a dozen timers were started at once. Now when just three timers are started, the automation fails to work for some of them.
I could add pauses to when my timers start, but I’m wondering if there is any other way to get back to simultaneous goodness. I’m running Hassio (up-to-date) as a vm on robust hardware.
- alias: "Timer Started to Switch"
mode: single
trigger:
- platform: event
event_type: timer.started
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: "switch.{{ trigger.event.data.entity_id.split('.')[-1] }}"
I am guessing it has to do with the fact that the mode is ‘single’. If two fire at the same time, then that will only execute for one of them. You can change the mode to parallel.
Parallel should work just fine unless its hitting the upper limit default of 10 which is also adjustable. Change it to parallel, change it to max: 25 and then if you have an issue, look in your log and see if you’re seeing errors.