A2DP ESPHome external component #806
PxPert
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'd like to let you know I'm currently writing an external component to interface A2DP Output with ESPHome.
The plan is to integrate with native, already existing media_player, speaker etc. components, inspired by the sendspin integration.
What I've done right now are:
It's still under heavy development, but the device starts, connect with an A2DP Source and plays (actually to my Hi-Fi) using the standard mediaplayer and SPDIF Speaker components.
To select bluetooth as a source right now you need to manually choose to play a2dp:// url from home assistant. Obviously this will change soon :)
You will find the yaml and the component under
https://github.com/PxPert/esphome-config/tree/master
media-player.yaml is the yaml used to develop the code
under components/a2dp_sink there is the source code for the external component.
The interesting part is the device will be able to play A2DP and from Remote (WiFI) sources (not at the same tame, obviously), all natively integrated with HA.
There is no dependency on audiotools as I'm using esphome framework. What would be interesting is adding SBC and AAC codecs in the near future.
Please let me know what you think about my project :)
All reactions