Adhan automation (أذان التلقائي) using Home Assistant and Google Home Mini

Asalaam Mo3alaikoem Bothers .

Is it possible to highlight the next prayer time ?
see example below

First calendar is not from HA. IS from an mobile app. Did you ask for that?

How did you set on the lovelace the exact prayer time instead of ago?

Look to the screenshot below, I need to see the scheduled prayer time.

Screen Shot 2020-05-21 at 18.12.11

@Rachid
JazakAllah for your help

Please can you advise what to do now? Sorry to be a bother.

Salaams,
Thank you so much for all your help around this. I ended up purchasing a google nest, and managed to get the adhaan working on there. However i would still like playback on the Sonos speakers, any help would be much appreciated. At the moment my yaml coding is exactly how you have shown in the main.

Hi @Himdola You have to add a “format time” line
see the example below:

entities:
  - entity: sensor.fajr_prayer
    format: time
  - entity: sensor.dhuhr_prayer
    format: time
  - entity: sensor.asr_prayer
    format: time
  - entity: sensor.maghrib_prayer
    format: time
  - entity: sensor.isha_prayer
    format: time
2 Likes

السلام عليكم
Where do I go to edit configuration .yaml file and replace all sensor
could provide a step by step for beginners like me
Thank you so much in advance!

Please first install “File Editor” from addons.

I have it installed!

click on file editor than from left hand side bar find configuration. click on configuration to open configuration file.

Okay, I opened configurations.yaml From file editor .

does this work with alexa, because i could not get it to work!

Please help.
I would be most grateful if you could kindly help me set up my google nest for adhan automation. I did follow the video guide and I can get it to trigger, but it does not play automatically.

Can you please check whether your Salah sensors are updating?

Only Google home

can you show me your script? i tried using the group entity, it doesn’t work for me

Salaams,

I have integrated the Islamic Prayer Times integration using the integrations page, but no matter which method I use, the salah times are always off. the closest calculation is the mwl, but it is exaclty two hours off. My location is correct (Cape Town) and my coordinates. I have installed and reinstalled the integration.
Thanks, Zameer

Salaam

you might want to use a different source for the prayer times. i live in London and was having the same issue and now using https://www.londonprayertimes.com/. Moonsighting (https://github.com/PrayerTimeResearch/PrayerTimeAPI) also do an API but i think it only returns prayer times for the entire year. Have you seen if the al adhan (https://aladhan.com/prayer-times-api) gives you a method that aligns to your local times?

Has anyone had any luck trying to synchronise the adhan over multiple google home speakers? I have tried input boolean but still not in sync, there is slight delay between the speakers

Finally, I got the answer from someone. Thank you :slight_smile:

Sallam Allaikum Brother. I hope you are well during these times. I was wondering if you are able to help me with Adhan. I have configured the following automation, however it doesn’t seem to trigger. I installed “Islamic Prayer Times” integration and set it to “mwl” however the automation NEVER triggers ie) it doesn’t appear that the boolean match of {{ as_timestamp(strptime(states(“sensor.time_date”), “%H:%M,%Y-%m-%d”)) == as_timestamp(strptime(states(“sensor.duhur_prayer”), “%Y-%m-%dT%H:%M:%S”))}}’
is becoming true. Are you please able to help me out? Thanks in advance brother.

Automation:

  • id: ‘1597107500790’
    alias: adhan
    description: adhan
    trigger:
    • platform: template
      value_template: ‘{{ as_timestamp(strptime(states(“sensor.time_date”), “%H:%M,%Y-%m-%d”)) == as_timestamp(strptime(states(“sensor.fajr_prayer”), “%Y-%m-%dT%H:%M:%S”))}}’
    • platform: template
      value_template: ‘{{ as_timestamp(strptime(states(“sensor.time_date”), “%H:%M,%Y-%m-%d”)) == as_timestamp(strptime(states(“sensor.duhur_prayer”), “%Y-%m-%dT%H:%M:%S”))}}’
    • platform: template
      value_template: ‘{{ as_timestamp(strptime(states(“sensor.time_date”), “%H:%M,%Y-%m-%d”)) == as_timestamp(strptime(states(“sensor.asr_prayer”), “%Y-%m-%dT%H:%M:%S”))}}’
    • platform: template
      value_template: ‘{{ as_timestamp(strptime(states(“sensor.time_date”), “%H:%M,%Y-%m-%d”)) == as_timestamp(strptime(states(“sensor.maghrib_prayer”), “%Y-%m-%dT%H:%M:%S”))}}’
    • platform: template
      value_template: ‘{{ as_timestamp(strptime(states(“sensor.time_date”), “%H:%M,%Y-%m-%d”)) == as_timestamp(strptime(states(“sensor.isha_prayer”), “%Y-%m-%dT%H:%M:%S”))}}’
      condition: []
      action:
    • data: {}
      service: script.adhan
      mode: single