Hope someone can help me here.
Homeassistant installed on Raspberry Pi 3’ use the following code
media_player:
- platform: vlc
name: speaker_1
arguments: ‘–alsa-audio-device=hw:0,0’
in configuration.yaml for message and was working fine but volume was very low. So i did some research and found a post using the following command to increase volume on the pi.
sudo amixer set PCM — 100%
after I executed the command, the script I used to run announcement no longer worked.
the media_player was playing but no sound come out from the speaker. Can someone help please. BTW, I did reboot the pi and restart HA.
-
Please format your code so it is readable with proper indenting. This is vital for interpreting YAML. Edit your post then highlight your code and press the </> button in the message toolbar. Or follow the instructions in the blue banner at the top of this page.
-
Is this the post you were referencing? Volume slider for integrated 3.5mm speaker
-
Have you tried setting it back to another value? Like 50%?
Thanks tom-1, got it working:
trail and error;
using:
sudo amixer set PCM – -400
will set raspberry pi 3.5mm jack to 92%
using:
sudo amixer set PCM – -10239 will set volume to minimum.