From 7c1b9c7697d868477c9aab6c8f29167555ad0220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Gumu=C5=82a?= <70687019+adrgumula@users.noreply.github.com> Date: Sun, 2 Jul 2023 23:46:55 +0200 Subject: [PATCH] Update README.md --- README.md | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 9c0ea81..08a5b8c 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,40 @@ The goal of this tutorial is to pair arbitrary bluetooth speaker and use with an Used installation: - Proxmox - Home Assitant (Supervisioned version) -- any bluetooth spearker without auto-shutdown funciton when inactive (not playing for a longer time). Iv'e used Xiaomi Mi Compact Bluetooth Speaker 2 +- 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) -1. Get your BT speaker's **MAC Adress** & **Name** -2. Make sure that Proxmox - HA VM as Audio device added (for example: _device=intel-hda, driver=none_) -3. Install **SSH** addon into the HA and configure it -4. Switch off yout BT speaker -5. Loging into the HA using termina: login@IP_Adress -6. Type: **bluetoothctl** -7. Type: **scan on** -8. Switch on your BT speaker & paring mode -9. Look if your BT speaker was detected (by name of MAC adress) -10. Type: **pair** MAC_ADRESS (for example: 00:11:22:33:44:55) -11. Type: **trust** MAC_ADRESS (for example: 00:11:22:33:44:55) -12. Type: **connect** MAC_ADRESS (for example: 00:11:22:33:44:55) -13. At this point your BT should be connected to your HA +I. Connection: + 1. Identify your BT speaker's **BT MAC Address** & **BT Name** + 2. Make sure that Proxmox - HA VM as Audio device added (for example: _device=intel-hda, driver=none_) + 3. Install **SSH** addon into the HA and configure it + 4. Switch off yout BT speaker + 5. Loging into the HA using termina: login@IP_Adress + 6. Type: **bluetoothctl** + 7. Type: **scan on** + 8. Switch on your BT speaker & paring mode + 9. Check on the console if your BT speaker was detected (by name of MAC adress) + 10. Type: **pair** MAC_ADRESS (for example: pair 00:11:22:33:44:55) + 11. Type: **trust** MAC_ADRESS (for example: trust 00:11:22:33:44:55) + 12. Type: **connect** MAC_ADRESS (for example: connect 00:11:22:33:44:55) + 13. (in the case of any problems type **help** for more info) + 14. At this point your BT should be connected to your HA + +II. Installing requied add-ons & integrations + 1. 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** + 2. Go back ot VLC-Local **Info tab** and enable **Auto-Start** + 3. Go to HA Settings -> **Devices & Services (Integrations)** and **Add New Integration** + 4. Search for **VLC LAN** select it and pick-up **Local VLC Media player via Telnet** + 5. Enter the password **Telnet Password** and click submit, +III. Testing + 1. Go to **Developers Tools** and **Services** and enter: + a. **Service**: Media player: Play media + b. **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** +