Giter Club home page Giter Club logo

homeassitantbluetoothspeaker's Introduction

The goal of this tutorial is to pair arbitrary bluetooth speaker with the Home Assistant (HASSO) to be able to hear notifications & TTMs

What was used during the installation:

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 & enter it into 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. Check the connected devices using command: pactl list pactl and look for something simiar to Name: bluez_sink.4C_72_74_XX_XX_XX.a2dp_sink
  15. image
  16. Make the new BT device as the default sound output by using follwing command: pactl set-default-sink NAME_OF_YOUR_BT_SPEAKER_FIND_IN_THE_PREV_STEP
  17. Check of the output is not muted, nor volume set to zero, by Mute: (should be no) and Volume:, should be front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB by using following commend: pactl list sinks | grep "Mute:" and pactl list sinks | grep "Volume:"
  18. Type ha audio reload and wait for Command completed successfully message
  19. At this point your BT should be connected to your HA
  20. Type: exit

II. Installing requied add-ons & integrations

  1. Goto HA and install Settings -> Add-in VLC Local
  2. Goto VLC Local -> Configuration
  3. Set the Telnet Password and Http Password (you can use the default mypasswrd as well)
  4. change the Audio-Output to the correspinding BT Name (it's the same obtainied at I.1 point)
  5. image
  6. Go back to VLC-Local Info tab and enable Auto-Start option
  7. Get back to Info tab hit Start
  8. Go to HA Settings -> Devices & Services (Integrations) and Add New Integration
  9. Search for VLC LAN select it and pick-up Local VLC Media player via Telnet
  10. Enter the password Telnet Password and click Submit
  11. NOTE: in case when VM with HA restarts & or BT device shutdowns power on the dev (XMYX02YM should say "Connected" after a few seconds) and go to section I.12 and II.4 points, and start VLC Local back again

III. Testing

  1. Go to Developers Tools and Services and enter followings :
  2. Service: Media player: Play media
  3. Target: Search for VLC and select your one
  4. Content type: music
  5. Content ID: /local/your.mp3 (files your.mp3 should be located at the /local/www/ folder of your HA installation)
  6. Press Call-Service
image

homeassitantbluetoothspeaker's People

Contributors

adrgumula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.