Hello all
I am needing some assistance in getting audio to play when an automation is triggered.
I have a button that I have added to my home assistant.
I have added an alarm sound to the media file.
/media/alarmsound.wav
I have created the automation for when the button is activated it needs to play the sound.
alias: panic button sound 1
description: ""
triggers:
- trigger: state
entity_id:
- sensor.smart_button_button
from: "0"
conditions: []
actions:
- action: media_player.play_media
data:
media_content_id: /media/alarmsound.wav
media_content_type: music
target:
device_id: 692408eefc106dbf12696ef150ed4aa0
mode: single
but the automation gets triggered but no sound comes through the pc that is logged in. I have VLC loaded to be able to use the local host as a media player. but unsure where I am going wrong.