The goal of this tutorial is to pair arbitrary bluetooth speaker and use with and the standard output for Home Assistant (HASSO)
Used installation:
- Proxmox
- Home Assitant (Supervisioned version) (I've being using currently Home Assistant 2023.6.3 -> Supervisor 2023.06.4 -> Operating System 10.3)
- any bluetooth spearker without auto-shutdown funciton when inactive (not playing for a longer time). Iv'e used Xiaomi Mi Compact Bluetooth Speaker 2
- https://mi-home.pl/cdn/shop/products/2591_micompactbluetoothspeaker2-640px-hero_5b1911e4-9fdb-489b-b76e-d159d0e9ba1f.png?v=1679760040&width=1440![image](https://github.com/adrgumula/HomeAssitantBluetoothSpeaker/assets/70687019/de2e95d6-f66e-44f2-b67e-652a76e82886)
I. Connection:
- Identify your BT speaker's BT MAC Address & BT Name
- Make sure that Proxmox - HA VM as Audio device added (for example: device=intel-hda, driver=none)
- Install SSH addon into the HA and configure it
- Switch off yout BT speaker
- Loging into the HA using termina: login@IP_Adress
- Type: bluetoothctl
- Type: scan on
- Switch on your BT speaker & enter it into paring mode
- Check on the console if your BT speaker was detected (by name of MAC adress)
- Type: pair MAC_ADRESS (for example: pair 00:11:22:33:44:55)
- Type: trust MAC_ADRESS (for example: trust 00:11:22:33:44:55)
- Type: connect MAC_ADRESS (for example: connect 00:11:22:33:44:55)
- (in the case of any problems type help for more info)
- At this point your BT should be connected to your HA
II. Installing requied add-ons & integrations
- Goto HA and install Settings -> Add-in VLC Local a. Goto VLC Local -> Configuration b. Set the Telnet Password and Http Password (you can use the default mypasswrd as well) c. change the Audio-Output to the correspinding BT Name
- Go back ot VLC-Local Info tab and enable Auto-Start
- Go to HA Settings -> Devices & Services (Integrations) and Add New Integration
- Search for VLC LAN select it and pick-up Local VLC Media player via Telnet
- Enter the password Telnet Password and click Submit
III. Testing
- Go to Developers Tools and Services and enter followings : a. Service: Media player: Play media c. Target: Search for VLC and select your one c. Content type: music d. Content ID: /local/your.mp3 (files your.mp3 should be located at the local/www/ folder of your HA installation) e. Press Call-Service