Hi All,

I’m to the point with my setup I’d like to start integrating audio. I know I’ll be tweaking ad-infintum, but I’d like to get started with some BT speakers and ESPs I have.

I had screwed around a bit with it previously, with little luck, but I was very early on. I’d like to dig in this weekend, but want to double check an understanding:

If I flash an ESP as a BT proxy, I should be able to add it to HA (via ESPHome?), then pair a BT speaker with it, which HA will now recognize and be able to pipe audio to?

  1. How does pairing the speaker work? When I put the speaker in discovery mode will HA show it as a device I can add?

  2. Do I need an integration to act as a manager/mixer for my various speakers?

As a bonus, if there is an integration that allows me to sync up the various speakers (if it’s not done automatically), that would be amazing. I’d be thrilled just with audio, but my house happens to have a bathroom vent with integrated BT speaker. It would be cool to have that synced with the living room audio when I have people over the game or similar.

  • Ravi@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago

    Don’t worry, the setup seems rather complicated. Especially since bt doesn’t work as we are used to from pcs and phones. You’re almost as far as I am.

    1. Go into Music Assistant
    2. Open settings -> Users and click on the three dots beside your name
    3. Manage Access tokens, create a long lived one and copy it
    4. Open the bridge addon
    5. Insert your token in the MA config there and try to connect
    6. If it doesn’t work, try changing the port to 8095 (this was my default) you may also get the right port from the MA config

    After that you are exactly where I stand

    • batmaniam@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 days ago

      Thank you! It looks like the documentation is lagging behind a few updates. I followed those steps, but I am getting a “token rejected - make sure it was just minted and not revoked”.

      • I confirmed that I made the token and it is unique (I named it Spinbridge)
      • I tried port 8095 (also the port default for MA for me).
      • Interestingly, I also tried 8080 and got the same result

      May I ask what you put into the “host” field? Is it just the IP address for the server (that has HA and MA on it in my case)? Do you include the port number even though it asks for it next? This is the part that lead me to believe it was a separate service. Thanks for the help, if I can “catch up” maybe I can help crack the bluetooth adapter issue, as my BT proxy is defnitley doing something.

      • Ravi@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 days ago

        Yeah, I also found some snippets with yaml config in the docs, which seem to have a config UI now.

        My host is set to “auto”. If this doesn’t work, I’d try the IP of your HA server or localhost or 127.0.0.1 and see if anything works.

        • batmaniam@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 days ago

          No joy. When you say you set it to “auto”, was that a drop down menu or something you have to manually put in? I have a window with 3 enterable fields that I have to type in (host, port, bearer token) and a checkbox at the bottom for “use https”. Also what kind of HA/MA are you running? HAOS, Container? I’m getting the impression they focused on developing for HAOS.

          Thanks for all your help, if I can’t crack it I’m going to see if I can’t solve via hardware. The ESP-32s can have trouble using bluetooth and wifi heavily at the same time, but there are libraries to turn it into a DLNA client.

          • Ravi@feddit.org
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 days ago

            I have a HAOS VM running on proxmox. IIRC VMs are the preferred deployment solution right now.

            auto was prefilled for the field host on my deployment. MA server IP/hostname (no http://, no port, no path), or auto for mDNS discovery auto

            I installed MA just recently as a regular App.

            Just yesterday I ordered esp and audio chips based on https://github.com/RealDeco/SendspinZero With this I hope to get little Sendspin recievers that I can just plug on to my speakers. Just like the new official AUX-2 would do.

            • batmaniam@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 days ago

              Ah, it looks like the integration plays more nicely with HAOS than the container version. I think I’m going to go the same route you are then. That’s a pretty reasonable price for the Cast1, I’ll probably do that and the DIY route you indicated when some clients pay their invoices. Thanks for walking the trail with me!

              • Ravi@feddit.org
                link
                fedilink
                English
                arrow-up
                2
                ·
                5 days ago

                No problem and best kf luck with the Cast1. Curious what you think about after using it for some time.

                HAOS is better in general, the containered version has limitations when trying to run addons. IIRC HAOS spawns addons (or apps after the rename) as containers, which the HA container cannot do.