Haiii
I was newly configured Islamic Prayer time . Prayer sensor i have used through Integration . But not triggering automatically . I check Execute Manually working Done .
I am pasting my all configuration and Automation file below . please check and i believe some one help me for fix this issues
Configuration .yaml
homeassistant:
latitude: 25.2345086
longitude: 51.42757250000001
unit_system: metric
time_zone: Asia/Qatar
default_config:
discovery:
media_extractor:
sun:
sensor:
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'date_time_iso'
- 'time_date'
- 'time_utc'
- 'beat'
islamic_prayer_times:
calculation_method: makkah
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
Automation.yml
# Automation for 5 times Azan
- action:
- alias: 'Azan'
data:
entity_id: media_player.bedroom_speaker
media_content_id: https://www.islamcan.com/audio/adhan/azan2.mp3
media_content_type: audio/mp3
service: media_extractor.play_media
- data:
entity_id: media_player.bedroom_speaker
volume_level: '0.9'
service: media_player.volume_set
alias: Adhan
trigger:
- platform: template
value_template: '{{ as_timestamp(strptime(states("sensor.time_date"), "%H:%M, %Y-%m-%d")) == as_timestamp(strptime(states("sensor.islamic_prayer_time_fajr"), "%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.islamic_prayer_time_dhuhr"), "%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.islamic_prayer_time_asr"), "%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.islamic_prayer_time_maghrib"), "%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.islamic_prayer_time_isha"), "%Y-%m-%dT%H:%M:%S")) }}'
#Automation for Azkar
- alias: Play Azkaar sabah
trigger:
platform: time
at: "08:00:00"
action:
- service: media_player.play_media
entity_id: media_player.bedroom_speaker
data:
media_content_id: https://www.islamcan.com/dua/Duaasformorningandevening.mp3
media_content_type: audio/mp3
#Automation for Azkar
- alias: Play Azkaar Masa
trigger:
platform: time
at: "01:00:00"
action:
- service: media_player.play_media
entity_id: media_player.bedroom_speaker
data:
media_content_id: https://www.islamcan.com/dua/Duaasformorningandevening.mp3
media_content_type: audio/mp3
### Restart HA to force update Islamic Time Sensors at 1AM ###
- alias: Restart HA
trigger:
platform: time
at: "01:00:00"
action:
- service: homeassistant.restart
Prayer time integration Screen shot