-
-
Save OJ7/7f773927d99fe77933e8c7d96a70b6cd to your computer and use it in GitHub Desktop.
# Automation for Dhuhr, Asr, Maghrib, and Isha Adhan | |
- action: | |
- alias: '' | |
data: | |
entity_id: media_player.family_room_speaker # replace with your Google Home's id | |
media_content_id: https://www.youtube.com/watch?v=ADLO-Hm_nCQ # replace with your choice of Adhan | |
media_content_type: audio/youtube | |
service: media_extractor.play_media | |
- data: | |
entity_id: media_player.family_room_speaker # replace with your Google Home's id | |
volume_level: '0.7' | |
service: media_player.volume_set | |
alias: Adhan | |
condition: [] | |
id: '1517693010922' | |
trigger: | |
- platform: template | |
value_template: '{{ states.salat.dhuhr.state == states.sensor.time.state }}' | |
- platform: template | |
value_template: '{{ states.salat.asr.state == states.sensor.time.state }}' | |
- platform: template | |
value_template: '{{ states.salat.maghrib.state == states.sensor.time.state }}' | |
- platform: template | |
value_template: '{{ states.salat.isha.state == states.sensor.time.state }}' | |
# Separate Automation for Fajr Adhan | |
- action: | |
- data: | |
entity_id: media_player.family_room_speaker # replace with your Google Home's id | |
media_content_id: https://www.youtube.com/watch?v=VHcRTIcRvN8 # replace with your choice of Fajr Adhan | |
media_content_type: audio/youtube | |
service: media_extractor.play_media | |
- data: | |
entity_id: media_player.family_room_speaker # replace with your Google Home's id | |
volume_level: '0.99' | |
service: media_player.volume_set | |
alias: Fajr Adhan | |
condition: [] | |
id: '1517694139112' | |
trigger: | |
- platform: template | |
value_template: '{{ states.salat.fajr.state == states.sensor.time.state }}' |
(off topic)
@highwingers Also download multiple Azaan MP3 locally on computer in Data folder instead of referencing it on your website you are assuming every machine will be connected to public internet which will have access to internet always. You can give user an option through your UI to update local machine whenever you have any update on your website that way each install is not dependent on your website and can run independently without any external dependency.
Google Home Speakers will NOT play local files, it has to hosted on HTTP server. Now I can install local web server to host files, however users would run into many issues (Such as LAN's VLAN;s Firewall etc etc). This is why I left the Adhan file field editable, so users can feel free to host their Adhan anywhere they want.
(off topic)
(off topic)
@highwingers, can you please provide a contact address so everyone doesn't get notified for tech support?
@highwingers, can you please provide a contact address so everyone doesn't get notified for tech support?
Yes. Please visit SmartAzan.com and send all qiestions through the website.
(spam posts removed)
does this require a raspberry pi, i'd prefer to only need my phone or my computer and my nest mini.
does this require a raspberry pi, i'd prefer to only need my phone or my computer and my nest mini.
If you're going the Home Assistant route, you can install it on a variety of devices: see here
@highwingers' SmartAzan.com has a variety of devices you can use if you only want the adhan played (note: I haven't tried this method).
does this require a raspberry pi, i'd prefer to only need my phone or my computer and my nest mini.
If you're going the Home Assistant route, you can install it on a variety of devices: see here
@highwingers' SmartAzan.com has a variety of devices you can use if you only want the adhan played (note: I haven't tried this method).
I have a linux computer, what is the route I should take for that? Also do I really need to create a virtual machine for home assistant?
(off topic)
(off topic)