You only need one automation to handle all five times plus you can use a simple Time Trigger instead of a Template Trigger.
I posted an example in a related thread. The trigger is simply this:
- alias: Call to prayer example
trigger:
- platform: time
at:
- sensor.fajr_prayer
- sensor.dhuhr_prayer
- sensor.asr_prayer
- sensor.maghrib_prayer
- sensor.isha_prayer
action:
... etc ...