fl4p / batmon-ha

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

BM6 battery monitoring support #160

Open phoenixckua opened 11 months ago

phoenixckua commented 11 months ago

It doesn’t support bm6 https://a.aliexpress.com/_EwNjlIf . Is it possible to implement bm6 support? Android App BM6 working correctly.

phoenixckua commented 11 months ago

50547B243010 = {"id":"50:54:7B:24:30:10","mac_type":0,"adv_type":0,"name":"BM6","manufacturerdata":"eeaee3c4f8988453578074e7f1677430","rssi":-60,"txpower":0}

fl4p commented 11 months ago

I think its possible. I dont have such a device. It doesnt monitor current right?

phoenixckua commented 11 months ago

Yes, right. Available object: SoC, Voltage, Battery state, Temperature, Chanking Test, Charging Test, GPS Track. I need only SoC, Voltage, Temperature and maybe tracking. Ibeacon.
https://lgbatterymonitor.com/products/wireless-bluetooth-4-0-battery-monitory-bm6-with-car-battery-health-guardian-app-monitoring

phoenixckua commented 11 months ago

esp32-atom-lite (build SHA:10d7f7) OMG 50547B24F7B0 = {"id":"50:54:7B:24:F7:B0","mac_type":0,"adv_type":0,"name":"BM6","manufacturerdata":"4c0002153ba29cd9a42c894856badaf2606ef777114c0000cd","rssi":-57,"txpower":0,"brand":"GENERIC","model":"BM6 Battery Monitor","model_id":"BM6","type":"BATT","track":true,"batt":76,"device":"BM6 Tracker"}

0547B24F7B0 = {"id":"50:54:7B:24:F7:B0","mac_type":0,"adv_type":0,"name":"BM6","manufacturerdata":"ee017627cd6db2df636b4f31f0fe5d0f","rssi":-57,"txpower":0}

WolwX commented 8 months ago

Hello :)

I'm too interested by including my BM6 battery monitor in my Homeassistant. I'm on a Raspberry Pi and already use Batmon to monitor my BMS JBD lifepo battery.

Do you plan to add BM6 monitoring on Batmon ?

Thanks for your work 👍

fl4p commented 8 months ago

Its hard to implement without own the actual HW. Maybe I'll buy it. In the meantime any links to apps or code related to the communication with this BMS are welcome!

Karatzie commented 8 months ago

Hi Fabian.

I have a BM2 device in my campervan. I used it with my old lead batteries. I never connect this device to home assistant. I use ha-batmon with my new Supervolt batteries. For the lead starter battery I will use an INA226 with ESPhome. That is cheaper than a BM2 or BM6 battery monitor.

Here is a discussion about BM2 and Home Assistant. The discussion also includes the BM6 battery monitor. https://community.home-assistant.io/t/integrate-bluetooth-battery-monitoring-devices-cars-motorbikes-etc/511181

They use the openmqttgateway. Here is a link to the requirement The implementation of the voltage object for BM6 battery monitoring is required #1792 https://github.com/1technophile/OpenMQTTGateway/issues/1792

BR Andreas

The links do not work directly for me. I copy the link and use a new browser tab

fl4p commented 8 months ago

thanks i fixed the links. will have a look

JeffWDH commented 1 month ago

The BM6 uses a slightly different encryption key than the BM2. Details (and the key) can be found here: https://www.tarball.ca/posts/reverse-engineering-the-bm6-ble-battery-monitor/

dezanche commented 1 month ago

that is great news!