core: FFPlay Returning Exit Code 127
The problem
We have a door sensor that triggers an MP3 to be played via the analogue output port on system. Since upgrading to 2024.2.1, we have noticed in our logs this exit code (and obviously no sound coming out). Downgrading to 2024.1.5 appears to resolve the issue.
What version of Home Assistant Core has the issue?
core-2024-2-1
What was the last working version of Home Assistant Core?
core-2024-1-5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
shell_command
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
shell_command:
door_open: 'ffplay -volume 5 -nodisp -vn /media/Door_Open.mp3'
gate_open: 'ffplay -volume 5 -nodisp -vn /media/Ping.wav'
flood_detected: 'ffplay -volume 25 -nodisp -vn /media/Water_Dripping.mp3'
Anything in the logs that might be useful for us?
2024-02-10 11:08:28.430 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `ffplay -volume 5 -nodisp -vn /media/Door_Open.mp3`, return code: 127
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 19 (1 by maintainers)
shell_command itself is fine the issue is ffmpeg & ffplay command are somehow missing in core v2024.2.1
great workaround solution! I can finally use ffplay to play audio again! Many thanks
I agree with that, my automations play on my speakers via 3.5mm audio jack, i prefer to play like that because is more faster and doesn’t need cloud like alexa media player
It’s very frustrating. Please put the binary
ffplayback to the docker image.I have the same problem, and I’m very leery about reverting back to a previous core version as I’ve made several significant and important changes recently, which I cannot risk being broken.
I’ll attach relevant bits of my configuration.yaml,…
configuration.yaml.txt
and errors in logs,… ffplay errors.txt
I tried searching for ffplay’s path using a webterminal, but I cannot locate it anywhere. This however may just be because I’m not a haos command line expert. It was months ago when I set this all up, and I think ffplay is something that gets installed with the ffmpeg integration. I thought I could run it from the command line back then, but I can’t make that work now either. My suspicion is not a problem with shell commands, but that ffmpeg and ffplay have gone missing.
I do hope we can fix this. Custom audio notifications are so nice !