Direct audio output to 3.5mm jack in HA (Docker supervised) stopped working

Hey there awesome community, I’ve opened an account just to post my discovery about this topic since I spent quite some time and I’m hoping this will help someone having the same issue I had.

First, my setup:

  • RPI4 8GB RAM
  • Raspberry Pi OS 5.10.63-v7l+
  • Home Assistant Supervised 2021.12.8

The problem:

The audio jack 3,5mm (bcm2835 Headphones) is not recognized by the hassio_audio module, meaning nor Spotify, Mopidy, VLC or any other can have access to it… even if it works perfectly fine in the host OS.

The reason is that the pulseaudio module-alsa-sink is not being loaded automatically by the hassio_audio container.

The solution:

So far I’ve encountered 2,

  1. Load the module via script automation, which translate to do the following that you could check manually:
  • Wait until ha audio is started
  • bash into it docker exec -it hassio_audio /bin/bash
  • Exec pactl load-module module-alsa-sink
  • Profit!
  1. Use USB audio, get a cable or adapter (jack → USB) that are very cheap.

Hope this is useful,
Cheers!
dd