Adhan Automation (الأذان التلقائي للصلاة) using google speaker

What is wrong here, everything works now but i don’t get any notification. When i run the automation manually, it works well.

alias: OgleVakti
description: ""
trigger:
  - platform: time
    at: sensor.ogle
    id: Ogle
condition:
  - condition: trigger
    id:
      - Ogle
action:
  - data:
      message: Ogle Namazi
    action: notify.mobile_app_xxxxx
  - metadata: {}
    data:
      volume_level: 0.15
    target:
      entity_id: media_player.xxxxx
    action: media_player.volume_set
  - action: media_player.play_media
    metadata: {}
    data:
      media_content_id: http://xxxxxxxxxx:8123/local/xxx.mp3
      media_content_type: audio/mp3
    target:
      entity_id: media_player.xxxx
mode: single

Has anyone elses playback started failing after 2024.8.0?

2 Likes

I am not an expert but it looks like after action. you should issue a call of service and in this case it should be notify first and then data with message:

action:
  - service: notify.mobile_app_xxxxx
    data:
      message: Ogle Namazi
      title: 🕌 Prayer Time 🕌

This is assuming you only have issue getting notification on your mobile and the adhan plays fine on your speakers

Use this format for local files.

data:
media_content_id: /local/adhan/Adhan.mp3
media_content_type: audio/mp3
target:
entity_id: media_player.receiver
action: media_player.play_media