BTsink stereo conversion with ESPHome control, ota #358
Replies: 3 comments 5 replies
-
Mmm, how would you have to change this to turn the ESP32 into a mediaplayer for Hass and have the audio come out of bluetooth speakers/headphones over a2dp between esp32 and speakers/headphones? |
Beta Was this translation helpful? Give feedback.
-
I suggest to look at this as a starting point... |
Beta Was this translation helpful? Give feedback.
-
Cool thanks! I fear this https://github.com/pschatzmann/ESP32-A2DP/wiki/WIFI-and-A2DP-Coexistence hints that my desired use case is not really possible. :( Media server (Home assistant) -> wifi -> ESP32 (ESPHome Home Assistant media player) -> a2dp -> BT Speaker/Headphones |
Beta Was this translation helpful? Give feedback.
-
Thanks @pschatzmann for the great libraries.
After the inspirational video by Andreas I tried to use your libraries for a BT conversion of my old Stereo. I wanted an easy BT sink controlled via Home Assistant. An external DAC (PCM5102) is used.
Here is my current working setup using ESPHome ota updates. The esp32 is also controlling the stereo via IR commands (left out in the YAML here).
It's a very crude solution. The esp simply waits for a HA command to turn on the BT sink. If the command to disable BT comes in, the esp restarts into the waiting state.
I wanted to enhance this setup to have a second operating state where the esp is simply streaming web radio or is used as audio output for HA. When I tried this using the audio tools library, I got only one state working at a time. The switching (also by restarting) never worked. When I try this again, I might open an issue there, if you allow :).
Maybe this is useful to some. I would be grateful for any input/suggestions.
YAML:
advanced_bt_Component.h
Beta Was this translation helpful? Give feedback.
All reactions