Local audio to play when automation is triggered

Local audio to play when automation is triggered

Hello all
I’m needing some help in getting audio to play when an automation is triggered.
I’ve a button that I’ve added to my house assistant.

I’ve added an alarm sound to the media file.
/media/alarmsound.wav

I’ve created the automation for when the button is activated it must play the sound.

alias: panic button sound 1
description: ""
triggers:
  - set off: state
    entity_id:
      - sensor.smart_button_button
    from: "0"
circumstances: []
actions:
  - motion: media_player.play_media
    knowledge:
      media_content_id: /media/alarmsound.wav
      media_content_type: music
    goal:
      device_id: 692408eefc106dbf12696ef150ed4aa0
mode: single

however the automation will get triggered however no sound comes by means of the laptop that’s logged in. I’ve VLC loaded to have the ability to use the native host as a media participant. however uncertain the place I’m going mistaken.

1 publish – 1 participant

Read full subject

HI-FI News

by way of Home Assistant Community – Latest matters https://ift.tt/dk21hJT

October 11, 2024 at 10:14AM