Table of Content
The the athan times sensor will reset the dates to match the dates of today. I've created an alternative version with minimal setup (just requires any device that can run Python, e.g. can run on Raspberry Pi). I haven't fully tested it but inshaAllah it should work fine.

Might work great but no option for shia azaan. Set there and had to listen to so many options in the app but couldn't find a single option for proper azan. Surprising because it allows to adjust to correct Jafari times... Close the webpage/home assistant page.
Code definitions
Open balenaEtcher, click on select image, and choose the installation image that you have. Next click on change under the drive icon and select your SD card and click continue. Next click Flash and wait for the process to get completed. Once you get notification Flast Complete, close the balenaEtcher and look for a drive in your PC with name hassos-boot.

On this page, look on the top for a folder icon in the blue bar. Click on it and a list of files will appear. Now copy the code below and paste it in the editor on the right-hand side. Again click on folder icon and then click on automation.yaml file. Copy and paste the code below in the editor on the right-hand side. You can do this by adding time in seconds at the end of a template of your desired azan in automation.yaml file.
Adhan Automation. Prayer calls using Home Assistant and Google Home Mini
I installed ssh server and then just scp’d the files to /config/ You signed out in another tab or window. Reload to refresh your session. You signed in with another tab or window.
Also do you see the below sensors? We hope you like our action and do please rate us & keep us in your prayers. Replace this with the IP address of your raspberry pi. If your is at the correct place, there is no reason for it not to work. I scheduled a HA restart everyday.
Automated-Azan/execute_azan_on_google_home_devices.py
Click on it and you will be presented with an editor where we can modify configuration files. Hi @atique I have modified your both configuration and automation file. You can adjust the volume by playing around volume_level option in your automation.yaml file. On this card, you will see Adhan.

If your configuration and automation files are the same as mine, azan should be heared every day at it’s correct time. I reckon your HA would update the sensor even with out restarting it on daily basis now. Just turn off daily restating and check it’s behaviour again. This guide is written especially for newbies who have just a google-home-mini and are trying to make it call for adhan. I watched a lot of tutorials on Home Assistant and made myself familiarize with HassIO platform.
Can you please share your final configuration and automation file details. I am having difficulty to automate these triggers. Now set up your Google Home Speaker before proceeding if your google home mini is not already connected to your network.
I have google home mini and I am trying to get this setup on them. Please note that you may need an extra indent before the word trigger and the dash. Sometimes those simple spaces and tabs make a difference. Please copy my code and do a side by side compares and try again. Please see my comments embedded in the automation script.
Don't forget to replace SSID and password in the code below with correct values of your WiFi. At this point, you will be presented with the home assistant homepage with information that it will be ready in 20 minutes. In my case, it took more than 60 minutes to get ready. The homepage refreshes itself and it will ask you to set your name, username and password.
Safety starts with understanding how developers collect and share your data. Data privacy and security practices may vary based on your use, region, and age. The developer provided this information and may update it over time.
At this point, windows will ask you to format the SD card. Just cancel/ignore this request. Open hassos-boot drive and make a new folder in it with name CONFIG. Open this folder and create another folder in it with name network.
Download Home Assistant Platform HassOS image from official website. Download the correct image against your Raspberry Pi model. The downloaded image has an extension .gz which means it is a highly compressed archive. Right-click on it and extract .img from it. To extract it I’d recommend 7zip or WinRar. The end result is you will have an image with .img extension.
Open new browser page, type in your raspberry-Pi IP address along with 8213 as you did previously. HomeAssistant page will appear. Key in your credentials and you will see a dashboard with an automation card. If your google home mini is not already connected to the internet, now set it up before proceeding further.

A simple trick to know whether your mp3 file is accessible on your network or not. Paste this url in any browser and see whether you get a notification to download adhan_fajr_makkah.mp3. Thank you very much for the code. I got it to work but there is one issue. The sensor has the data built on within it. That means the azan only works for one day.
No comments:
Post a Comment