This automation app runs Adhan 5 times a day by switching on the speakers before playing the adhan and switching them off directly after. It allows playing Adhan on multi channel speakers, using raspberry pi's ~2W instead of having the speakers switched on (~42W) for a long period of time. Proposal design doc: here.
This is not (yet) a prayer times calculator. The project is currently supporting Munich, Germany.
- (Non-Zero) Raspberry pi with an auxillary port.
- Micro SD Card reader.
- Compatible USB power supply.
- Zigbee Antenna e.g. SONOFF Zigbee 3.0 USB Dongle Plus,TI CC2652P + CP2102(N).
- Zigbee compatible Smart Plug/Switch e.g. Innr SmartPlug Zigbee 3.0 Type F.
- Old speakers with auxillary.
- Connect the Zigbee Antenna to the raspberry pi via USB.
- Connect the speakers to the raspberry pi via aux.
- Connect the speakers to the Zigbee switch.
Replace the provided sample adhan.mp3
with your preferred Adhan (rename it to: adhan.mp3
).
Run via Dockerfile:
docker build --no-cache --tag adhan-homeassistant-pi-image:latest .
docker run \
--detach \
--restart unless-stopped \
--device /dev/snd \
-e switch_id=<ADD_ME> \
-e homeassistant_ip=<ADD_ME> \ # e.g. http://192.168.178.58:8123
-e homeassistant_token=<ADD ME> \
adhan-homeassistant-pi-image:latest
Run via docker-compose.yml:
# Replace the ADD_MEs in docker-compose.yml
docker build compose up -d
Follow setup from scratch for more details.
See CONTRIBUTING.md
for details.
Apache 2.0; see LICENSE
for details.
This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.