Alexa asserting the identify of performed audio file

Alexa asserting the identify of performed audio file

Hi of us,
I’m creating an automation to maintain birds away from the roof as a result of they transfer the tiles and yearly I’ve to name somebody to repair them again. I downloaded the sounds of the birds of pray residing in my space from the web and I play them with a pair of outside audio system that I positioned on the roof.
I’d like if Alexa may announce the identify of the file every time the automation runs however I’ve no clue get the template of the final performed file. Can anybody assist me with that?
This is the automation: after the file is being reproduced I wish to name alexa_media service asserting the file identify.

alias: Casa - S22) - Dissuasore uccelli
description: Emette verso di rapaci diurni o notturni in base all'orario
set off:
  - platform: time_pattern
    minutes: /15
    seconds: "20"
situation: []
motion:
  - select:
      - situations:
          - situation: numeric_state
            entity_id: sensor.giorno_numero
            above: 90
            under: 204
          - situation: state
            entity_id: solar.solar
            state: above_horizon
        sequence:
          - service: media_player.play_media
            goal:
              entity_id: media_player.XXX
            information:
              media_content_id: ""
              media_content_type: audio/mpeg
      - situations:
          - situation: numeric_state
            entity_id: sensor.giorno_numero
            above: 90
            under: 204
          - situation: state
            entity_id: solar.solar
            state: below_horizon
        sequence:
          - service: media_player.play_media
            goal:
              entity_id: media_player.XXX
            information:
              media_content_id: ""
              media_content_type: audio/mpeg
mode: single

If i verify traces I do have the identify of the used file however I’ve no clue let Alexa repeat that identify:

Eseguito: 8 maggio 2024 alle ore 00:00:20
Risultato:
params:
  area: media_player
  service: play_media
  service_data:
    media_content_id: /media/Suoni/Rapaci Notturni/**[u]Gufo comune femmina[/u]**.mp3
    media_content_type: audio/mpeg
    entity_id:
      - media_player.web_microsoft_edge_windows
  goal:
    entity_id:
      - media_player.web_microsoft_edge_windows
running_script: false

2 posts – 2 contributors

Read full matter

HI-FI News

by way of Home Assistant Community – Latest subjects https://ift.tt/QDlhaNx

May 8, 2024 at 12:12AM