platform: template
sensors:
salah_fajr:
friendly_name: “Salah Fajr”
value_template: >
{%- set a = states(“sensor.islamic_prayer_time_fajr”).split(“T”)[1].split(":")[0] -%}
{%- set b = states(“sensor.islamic_prayer_time_fajr”).split(“T”)[1].split(":")[1] -%}
{{ a + “:” + b }}
salah_dhuhr:
friendly_name: “Salah Dhuhr”
value_template: >
{%- set a = states(“sensor.islamic_prayer_time_dhuhr”).split(“T”)[1].split(":")[0] -%}
{%- set b = states(“sensor.islamic_prayer_time_dhuhr”).split(“T”)[1].split(":")[1] -%}
{{ a + “:” + b }}
salah_asr:
friendly_name: “Salah Asr”
value_template: >
{%- set a = states(“sensor.islamic_prayer_time_asr”).split(“T”)[1].split(":")[0] -%}
{%- set b = states(“sensor.islamic_prayer_time_asr”).split(“T”)[1].split(":")[1] -%}
{{ a + “:” + b }}
salah_maghrib:
friendly_name: “Salah Maghrib”
value_template: >
{%- set a = states(“sensor.islamic_prayer_time_maghrib”).split(“T”)[1].split(":")[0] -%}
{%- set b = states(“sensor.islamic_prayer_time_maghrib”).split(“T”)[1].split(":")[1] -%}
{{ a + “:” + b }}
salah_isha:
friendly_name: “Salah isha”
value_template: >
{%- set a = states(“sensor.islamic_prayer_time_isha”).split(“T”)[1].split(":")[0] -%}
{%- set b = states(“sensor.islamic_prayer_time_isha”).split(“T”)[1].split(":")[1] -%}
{{ a + “:” + b }}
I see now the times but such as salah 23:03 should be on 21 o clock. Just the time calculation is wrong. Do i need to do something whit calculation, i have now this set on Karachi-> i dont understand what it is mean. I am living in Europa bruxelles time.
i have did that now but it is now little bit correction on the times but not really exact. How can i solve that? I am using the official turkish diyanet calendar for Netherlands.
After changing my configuration to makkah from nwl, the times on card now also be ok but not the same. BUT, because i have changed it to makkah, do i need to change the automation again ?
Jazak allahu khairan, you made us very happy hearing Azan home in Australia
Could you please teach me how to I can store my own audio azkar files to hassIO
I read your reply on a similar question before but I could not understand how or where to create config and www folders
Thank you once again
Happy to hear that you made it. You need to install ADDON File Editor and then you will be able to see a folder WWW. You have to put your audio file in that folder and make some changings in the automation.yaml file. Please come back when you have audio in your WWW folder.
As Salaam a Likum. Firstly and foremostly - a BIG THANK YOU for creating this. Long story short, It took me about 8 hours how to setup hassio on a virtual machine and then followed your scripts to create the automation. I’ve just set it up … it played the Fajr azan just fine. Since it’s Ramadan, I wanted to go the extra mile and play Dua for sehri 45 seconds before the Fajr azan (since the play time for this dua is 20 seconds) - I figured it would be a good idea to set it up to play 45 seconds before. So as I read the entire thread, I figured if we could use the +xxxx (seconds) features to offset an azan, I figured I could use the -45 feature to offset it to PLAY BEFORE the Fajr azan. Here’e how I wrote it and IT DID NOT WORK — any suggestions?