Bluetooth proxy: Only one API subscription is allowed at a time

is it possible to have multiple api subscriptions?

workaround is to have multiple devices for this, some only added to same HA, but kinda not really solution.

Or can I somehow at least make esphome device available in HA with everything apart from btproxy? (this would get confusing, but easiest workaround)

usecase: multiple HA servers ie. one local and one remote with vpn

Yes you can connect to as many instances of ha as you want. (Within reasons, hundreds may not work, two certainly will)

Esphome byproxy module can indeed connect to multiple HA’s, but end BLE device can’t. I have a bunch of xiaomi BLE temperature+humiditiy sensors and they can only connect to one HA instance at a time. It took quite a while before i figured out why sometimes certain xiaomi is unavailable in one instance, sometimes in other… turned out that if i my test HA up &running this happens…

Same is with, say, LD2410 proximity sensor: if i connect to it via phone it’s unavailable in HA and vice versa.

WTF? Even if you look in the bluetooth_proxy code on github, it is designed that way.

How can two people(?) write that it is not?

Since it does not look like esphome will allow multiple connections workarounds that i come up with are:

  • ble to mqtt
  • ble client for each device
  • dedicated ble proxy for each instance

non is ideal

in my case i do not need any connections to the devices just read advertisements - for the time being - however my goal was to replace zigbee with ble device, but the development with the Bluetooth proxy makes me question that decision.

Normally it would be easiest to go with multiple proxies, but i have some devices that are in places with really poor signal and have dedicated proxy just to get their advertisements at least sometime.

I misunderstood your question, but there is no need to swear. We all know what WTF stands for, so mind your manners.

1 Like