#How to add support for a new, unsupported Bluetooth device via BT proxy?

1 messages · Page 1 of 1 (latest)

grave jewel
#

What's a good place to start learning how to add support for a new Bluetooth device (e.g. something that is not auto detected) - I'm failing to find anything useful via google (e.g. what is the Zigbee2MQTT "external definition" equivalent for ESPHome BT Proxies to HomeAssistant)?

I have several BT proxies, and I'm wondering if I can do some snooping of the Temtop C10 2nd, which is a BT CO2 air quality meter. It'd be great to have similar support to the similar Seitchbot CO2 air quality sensor that was auto detected via the BT proxies ..

sullen basin
#

There isn’t anything quite like “external definitions”, you need to write an integration. For some sensors that’s quite a simple integration that you can largely copy and paste, but it’s still more involved than an external definition.

#

The best/easiest kind of integration are sensors that broadcast value payloads in their advertisements. With those there is very little Bluetooth to do, you are just writing the parsing function for the parsing payload.

#

Xiaomi-ble and inkbird-ble are examples of that kind of integration

grave jewel
#

These details are perfect, thank you!

green ivy
#

Doesn't get much better than that for a reply

echo vapor
#

Is the bluetooth proxy meant for only sensors? Could you control eg. bluetooth controlled lights trought it?

green ivy
#

I haven't proceeded with detailed investigation yet, but the one item that seems to be key is it works for BLE devices and not Bluetooth Audio devices

#

From above, I'm guessing sensors that do not haev value payloads in their advertisements are going to need some sort of two-way communication, and I would expect that if that is possible, it would work both for instructing the device to send a particular piece of data and for sending any other sort of instruction (e.g. set light level) to the device

#

These are pure guesses, as I really have no direct experience here and am simply in the planning stages of adding integrations for some devices I have

#

I sent the device manufacturer a request for the bluetooth protocol details. 🤞 this goes the easy way and not the hard way

sullen basin
#

some bluetooth proxies can be used to control stuff

#

e.g. esphome can, shelly cannot