Actually it is difficult to comment on it. Some people have mentioned that they have this problem when their Pi was connected to the internet via WiFi and the problem is gone once they connected it to the internet via LAN cable whereas others reported quite opposite to it. Just monitor the behaviour of your Pi for one or two days to make sure everything is working as desired.
If due to some reason, Islamic prayer sensors are not updating automatically, considering adding the following code to the end of automation.yaml file. This code is meant to restart your raspberry pi at 1 AM every night thereby forcing the sensors to update.
############### Restart HA ###############
- alias: Restart HA
trigger:
platform: time
at: "01:00:00"
action:
- service: homeassistant.restart
Salam Sahar, How do I add more speakers or devices(media_player.playroom_speaker) to this script? Also would it be any different for adding a google home hub?
Assalaamualaikum,
Thanks, Sahar, for all of your work on this project! I have been dreaming of implementing Adhan into my home ever since I got my first Google Home Mini about 3 years ago. I had head of Home Assistant, but never had the nerve to dive into it until now. I now have Adhan echoing throughout my house through my Google Home devices!
I wanted to mention that if you have multiple devices, just simply create a group within the Google Home app on your phone and then add your devices to it. Then use that group as your media device in automations.yaml. My group is called “zgroup”, so it’s entity_id: media_player.zgroup
Wa Alaikum Salam. Glad you made it.
Thanks for the information on how to deal with multiple google speakers. I reckon it would be of great help if post a few screenshots showing steps on how to group devices in the google app and also the concerned portion of your autiomation.yaml file.
JazakAllah.
I have lost access to the sensors. They are all saying… Entity not available: sensor.islamic_prayer_time_fajr (and the same error for the rest of the prayers). I can’t think of any change I made that would be causing this. Is this happening to anyone else? I have tried restarting everything but same errors.
I just had a quick question, would it be possible to do this using a Raspberry Pi Zero W, it has the required ports, my question is would the RAM be an issue at all ?
Welcome @fast900 to HassIO community. Yes, it is possible to install HassIO on a raspberry pi zero W. In fact my first installation was on Pi Zero W too. But Pi zero W is too slow because of having just 512 MB of RAM and it takes normally 20 to 30 minutes at its first boot.
I suggest you buying a Raspberry Pi 4 with 2GB or 4GB RAM. Go for a 4GB model if you are not on a tight budget, otherwise, a 2GB model would be more than enough.
I’m happy to say that I got the sensors working again! I cloned my Linux VirtualBox, and then restored an older snapshot and the sensors were there
Now the next things I’d like would be to have my hue lights blink a few times during adhan, and to have an adhan image display on my Google smart displays instead of a little icon. Both of these aren’t necessary, but they would be cool