fl4p / batmon-ha

Add-on for Home Assistant to connect JK, JBD, Daly, ANT, SOK and Supervolt BMS via Bluetooth
MIT License
314 stars 60 forks source link

Trouble finding any BMS through ESPHome Bluetooth Proxy (SMLIGHT SLZB-06M) for remote location #220

Open Off-Grid-Garage opened 7 months ago

Off-Grid-Garage commented 7 months ago

Hello and thank you for your great integration and solution by connecting to many supported BMS via BT.

Background (and problem): My HA installation and hardware is installed inside my house while my batteries and BMS are setup in my garage, a separate building ~50m away from the house. I have a network connection between the buildings and have several services running through that connection successfully. This is too far away to connect any BT devices though.

The Solution: I recently bought and installed a SMLIGHT SLZB-06M Zigbee, Wifi, Bluetooth Ethernet extender in my garage. The Zigbee over Ethernet Mode works a treat (adds a second coordinator to one HA installation). image The SLZB has now been flashed with ESPHome Bluetooth Proxy firmware provided by SMLIGHT and it works fine with all my Bluetooth devices inside my garage (BT LED lights, Ruuvi Tags, ...) and I can control these BT devices now from inside my house.

The only thing which does not work is batmon-HA and I'm struggling to find the right adapter name for this SLZB device. Batmon-HA uses hci0, hci1,... to specify the BT adapter. This obviously does not work as the SLZB is not a generic BT adapter attached to the HA hardware. BT discovery and scan only find devices in my house as it falls back to the default BT devises it knows about.

HA obviously has no trouble to connect to the remote BT devices through the ESPHome Proxy, so the question arises if batmon-HA is able to use this same BT proxy connection.

A lot of people would be interested in such a solution when their HA installation is not in BT range of their BMS. Any help and support to resolve this is much appreciated. Please let me know how I can assist with further information and testing.

Cheers and thank you again from sunny hot Australia Andy

image image image

7wells commented 7 months ago

Hello!

Have you made any progress?

Off-Grid-Garage commented 7 months ago

Hello @7wells !

No, I haven't unfortunately. I'm still unable to find the device name to add to the adapter in Batmon.

Would really like to get this resolved...

At the end, I can swap the HA server and the SMLIGHT BT Proxy (HA goes in the garage, SMLIGHT goes in my house). Having the server (with its 'genuine' BT hardware) near the BMSes will definitely work with the Batmon integration, but I would prefer not to swap the hardware just for this reason.

There must be a way to find the device name and add this to the Batmon integration. That is all we need...

7wells commented 7 months ago

Maybe I have missed something you mentioned before, but would it be possible for you to disable the BT hardware of your HA device? Shouldn't then only your external BT dongle appear (and thus be easily configurable)?

Please accept my apologies if this does not make sense for you or is impossible - it's just a thought. 😊

Greetings from Germany to Down Under! 👋

Off-Grid-Garage commented 7 months ago

Thank you for your suggestion.

This is how the internal BT adapter shows up in HA: image

The SLZB does not show up as traditional BT device but as a ESPHome device: image

You would think, there is the device name of the SLZB, right? Tested that already as the adapter name in Batmon with no avail... image

The error messages are new though. Something is outdated... image

If I disable the BT in HA, there is no difference from what I can see in the log: image

Not sure where to go from here...

patman15 commented 6 months ago

@7wells, @Off-Grid-Garage this addon does not support ESPHome bluetooth proxy. See https://github.com/fl4p/batmon-ha/discussions/213#discussion-6419834 for a possible solution, but jikong is not (yet) supported.

patman15 commented 4 months ago

Support added.

huskyte commented 3 months ago

hmmm, and how does the solution look like then?

adapter: "Slzb..." or is it automatically choosen?

huskyte commented 3 months ago

image

This is how my SLZB shows up. Do I use the name or the address?

patman15 commented 2 months ago

hmmm, and how does the solution look like then?

see https://github.com/fl4p/batmon-ha/discussions/213#discussion-6419834