Hi all,
i set up the bluetooth device tracker in my configuration.yaml and I find several devices, including my bluetooth speaker (entity: device_tracker.bluetooth-speaker ). How can I use this speaker now? E.g. send music or TTS over it?
known_devices.yaml
bluetooth-speaker:
icon:
mac: BT_BC:30:7D:8C:D3:7A
name: Bluetooth Speaker
picture:
track: true
Thanks and best regards!
Tinkerer
(aka DubhAd on GitHub)
May 31, 2020, 8:15am
2
You can’t
The device_tracker
integration is just for tracking devices - telling if they’re on/nearby or not.
Is there other way to use bluetooth component ?
i would like to use bluetooth speaker for each sound of HA like music, TTS, alarm siren and so on.
Tinkerer
(aka DubhAd on GitHub)
August 18, 2020, 8:07am
4
Sure, create a custom component that handles that.
any clue how to do that ? i’m relatively new on HA and with HassOS installation we are rather limited on system actions/commands.
Hellis81
(Hellis81)
August 18, 2020, 8:23am
6
If you know how to solder then you can use the DFplayer mp3 player with an ESP chip.
Have the output from the DFplayer go to a Bluetooth transmitter.
That should in theory work.
Is anyone controlling a DFPlayer Mini MP3 player with an ESP8266/ESP32 using ESPHome? It’s a small MP3 player board with an SD card slot that can be connected directly to a speaker and controlled via serial commands. For example, like this taken from an Arduino example:
// Play track 0013.mp3 of Dfplayer microSD
char command[] = { 0x7E, 0xFF, 0x06, 0x03, 0x00, 0x00, 0x0D, 0xFE, 0xEB, 0xEF };
There is a feature request to add support in ESPHome, but it seems like it should be possible to contro…
not very simple…especially that the raspberry pi have already the Bluetooth but it’s seem impossible to exploit that…