Sorry, I'm still learning. This is my 1st "sound" automation but I guess I don't understand the pieces involved with media_player and VLC etc.
I have HAOS 16.0 (2025.7.3) on a RPi5 with usb speaker.
I can trigger an email to when my insteon open/close door sensor stays open for n minutes.
Now I want to play a sound on the locally attached speaker.
- I uploaded the wave file to /media/alarms/alarm.wav
- Added this to my configuration.yml (and restarted)
shell_command:
play_alarm: 'aplay /media/alarms/alarm.wav'
- Created the automation in the ui with action
- action: shell_command.play_alarm
data: {}
but I don't hear it playing. If I log into my haos node and play the file with aplay I hear it just fine.
Then I tried creating an action in the UI where I specify the target device, Content ID, and Content Type.
Content ID: always http://<haos-address>/media/alarms/alarm.wav
Content Type: always music
For Target I tried these
"All Speakers" <<-- I get a sound on my Nest speakers but not the wav file.
"VLC Telnet" <<-- Nothing happens
So how do I specify the locally attached speaker as the target?
Do I even need VLC Integration and Add on here?