I got it finally working. Seems to formatting issues in yaml. I copied your config to the sensor.yaml file and then played around with the indent. Now to Automation and testing. Presume you have the automation running by now. I am trying to pass the media to my TV (Android ADB Command). I have 2 TV at home and they are mostly on. Need to get a speaker that can be integrated with HASS
IF you can share the automation that would be really helpful especially the template.
Thanks @Gadgets, used your solution to switch over from Islamic Prayer Times to Al Adhan API. Here are my configuration files. Replace all the <use yours> in the files.
Thanks, this was great. I was able to set up sensors with the correct time for my location.
Also for those with Echo or Amazon devices, you can install custom component HACS and install the Alexa Media Player Integration in both HACS and Home Assistant and use the following code in automations after “Azan”
Note, I used APPLE_MUSIC as the service and a custom playlist named Adhan. I was not able to get Alexa service to play mp3. Alternatively you can use AMAZON_MUSIC service to play a playlist you have created on amazon music I could only find one Adhan on Amazon_Music
Salam Brother. Sensor configuration works great. automation does not work, it does not start automatically when azan prayer calls. something to do with the value template. can you please assist. thanks
Am using the default integration within HA for Islamic Prayer Times. However, the time does not seem correct. I believe it did not take into account the timezone set in HA. Anything can be done to correct it?
Brother. Follow this code by Mr Hamzah. It works. need to change latitude, longitude, method, and for the media you change to your own entity_id. Hope yuo make it.
thanks
Remember to remove islamic prayer times in your intergration.
thank you. shame though since there already is an integration but it failed to work correctly, unfortunately not that savvy enough to help fix the code. but the link you gave me looks good. thanks!
I downloaded the Adhaan and stored it on my volumio. That way if I lose internet, I will still have Adhaan.
Also, note that for maghrib use sunset (see my code below) instead of the sensor:
We use actual sightings instead of calculated. However, I think that you could look at my example. it may help. My current experiment is to pull the database locally instead of using the API.
Do you mind sharing which API please?
I’m trying to use the same website but as it’s the whole year, I don’t know how to get it to show only the current day.
If you do get it working, please let me know.