pardon my ignorance. i’m unfamiliar with prayer time practices. that sensor returned midnight utc+0. which means it specified an absolute time (ie, same instant for the whole world simulteaneously).
is that what is correct? or should it be stripped to current local timezone?
when you did the number of minutes calculation, did you do it relative to your midnight? or relative to utc midnight? the code i gave should work only relative to utc midnight (which is what the sensor is saying).
My point is the islamic prayer integration provides 6 sensors including Fajr and Midnight. So should the sensor name mentioned in the template be same like the sensor mentioned in the yaml automation code?
If you have 6 different times, you’ll need 6 different sensors with the 90 minute offset. So the name:, unique_id: and the input 'sensor.islamic_prayer_times_midnight_time' in the template will all need to change. Also, you’ll need to add 1 trigger for each time trigger.
The backup may contain the configuration.yaml if you can get at it. If not, you could start with a relatively empty version to get running and then add in the things you need. If you broke out most sections and did not delete any other yaml files the damage shouldn’t be that bad. Question remains, did you set up the samba addon or any other means to access the files? What did you normally use to edit and/or how did you delete your configuration.yaml in the first place?
i did not set up samba addon.
the issue happened after i used the file editor addon to add a template. I saved the file as configuration.yaml
i think this caused to overwrite the original configuraiton.yaml file
In that case I’d probably attach a monitor and keyboard to the yellow and try to do a safe boot useing the command line interface, or try to create a small configuration.yaml file from there.