fl4p / batmon-ha

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

Use Bluetooth Proxy in Home Assistant to extend range? #173

Closed snipah closed 9 months ago

snipah commented 9 months ago

No bug, but rather a feature request: Is it possible to use a bluetooth proxy for batmon-ha? I operate a smart camper but to save energy I switched moved my Home Assistant instance to my Unraid-Server and just pull all data from my Camper by using a Wireguard-Tunnel: This way I can get the data from an ESP32. My idea: Could I keep using batmon by using BT proxy (https://esphome.io/components/bluetooth_proxy.html)?

fl4p commented 9 months ago

technically it is possible to use the esphome BT proxy. however, since batmon uses bleak (which abstracts linux BlueZ stack) and not the HA BT component. I have not verified this. It needs some changes, which shouldn’t be too hard. The best way I think would be if someone writes a bleak backend for the HA/ESPhome BT component.

Alternatively, run batmon on ESPhome using micropython, which needs implementing a bleak backend for MicroPython BT stack as well.

fl4p commented 9 months ago

dupe https://github.com/fl4p/batmon-ha/issues/34

7wells commented 9 months ago

@fl4p @snipah

Does that repo help regarding bleak for porting to ESP32?

https://github.com/hbldh/bleak

7wells commented 9 months ago

@fl4p @snipah Please see also there: https://github.com/fl4p/batmon-ha/issues/179

dowermyr commented 8 months ago

I see this is closed. Does the esp32 bluetooth proxy work? What to fill in the "adapter" row to make it work?