Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epoch / RoyPow Battery Support #186

Open
4 tasks done
rubenclark74 opened this issue Feb 10, 2025 · 17 comments · May be fixed by #217
Open
4 tasks done

Epoch / RoyPow Battery Support #186

rubenclark74 opened this issue Feb 10, 2025 · 17 comments · May be fixed by #217
Assignees
Labels
enhancement New feature or request

Comments

@rubenclark74
Copy link

Checklist

  • I have filled out the template to the best of my ability.
  • I have understood that this integration is only about battery management systems with Bluetooth Low Energy support.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate of any previous feature requests.

Please describe the enhancement you would like to have.

Would it be possible to add support for the BMS used in Epoch / RoyPow batteries? These are gaining a lot of ground in the RV space and it would be great to be able to monitor them!

I have a few of these batteries and would be glad to provide any info needed from them. Thank you!

Additional context

Image

@rubenclark74 rubenclark74 added the enhancement New feature or request label Feb 10, 2025
@patman15
Copy link
Owner

Do you have more information about the battery? Which BMS do they use, an app, a Bluetooth trace, ... ?

@rubenclark74
Copy link
Author

I'm not sure which BMS they use, but I believe it may be their own. The app is 'Epoch LI-ion'. Here are a couple of screenshots:

Image

Image

I haven't done a Bluetooth trace. Is there a particular app that works well for this?

@patman15
Copy link
Owner

I haven't done a Bluetooth trace. Is there a particular app that works well for this?

Yes, the template you filled for the request gives you hints for additional context: 😎

Add any other context (documentation) or screenshots about the feature request here. For new BMS types, please provide the output of bluetoothctl info <MAC> and the service explorer script. To speed up the integration please see if you are able to capture the Bluetooth traffic on Android or iOS while using the vendor app with the battery.

Thanks, Patrick

@patman15
Copy link
Owner

@rubenclark74 I can't find any further info, so without a trace I cannot proceed further.

@rubenclark74
Copy link
Author

Apologies as I have been sick and not able to get back to this yet. I will see if I can get you more info this weekend!

@patman15
Copy link
Owner

No.worries, I hope you are doing better again. This was not meant to push you! I just wanted to tell you that I cannot provide you support without more input. So just follow up as it suits you.
Take care, Patrick

@rubenclark74
Copy link
Author

Patrick, I have attached a BT dump from an Android device to the Epoch B12100A battery. Hopefully this will be helpful. Appreciate all you are doing to help the community!

btsnoop_hci.log

@patman15
Copy link
Owner

patman15 commented Mar 3, 2025

Hopefully this will be helpful.

It is! Thanks! I will have a look and let you know in case I need more. But for the moment I'm good to implement.

@patman15 patman15 self-assigned this Mar 3, 2025
@patman15
Copy link
Owner

patman15 commented Mar 7, 2025

@rubenclark74 almost done, I'll soon have a test version for you. It took me a while to figure out which CRC is used. Best regards, Patrick

@patman15
Copy link
Owner

patman15 commented Mar 8, 2025

@rubenclark74 I pushed a first version, can you please check the branch linked to this issue using manual install and provide me a debug log? The stored energy sensor is missing, I'm struggling with understanding the encoding of the data. The rest should work already.
EDIT: found it, fixed. Should work now fully.

@rubenclark74
Copy link
Author

Patrick, awesome start! I got the branch installed and restarted HA and it found my battery right away. :)

One issue I'm seeing is it seems to read the values for about a minute, then the values are unavailable for another minute and it cycles back and forth.

Additionally, I have two more batteries of the same model and it does not appear to be seeing those.

Hopefully these will be easy to address. Let me know what you need from me to help troubleshoot. Great work so far!

@patman15
Copy link
Owner

patman15 commented Mar 9, 2025

Patrick, awesome start!

Thanks! 😃

One issue I'm seeing is it seems to read the values for about a minute, then the values are unavailable for another minute and it cycles back and forth.

Can you please provide me a debug log so I can check what is going on?

Additionally, I have two more batteries of the same model and it does not appear to be seeing those.

Please provide me the relevant information as described in the README. Thanks!

@patman15 patman15 linked a pull request Mar 9, 2025 that will close this issue
@rubenclark74
Copy link
Author

I have attached the debug log to see if you can diagnose the connection issue.

Additionally, here is the info for the other two batteries:

{"name":"12-6C-14-39-28-1F","address":"12:6C:14:39:28:1F","rssi":-50,"manufacturer_data":{"2865":"88a0126c1439281f"},"service_data":{},"service_uuids":["0000ffe0-0000-1000-8000-00805f9b34fb","0000fee7-0000-1000-8000-00805f9b34fb"],"source":"2C:CF:67:4A:BF:F2","connectable":true,"time":1741638060.0765388,"tx_power":null}

{"name":"C6-6C-15-08-A7-E9","address":"C6:6C:15:08:A7:E9","rssi":-66,"manufacturer_data":{"35579":"88a0c66c1508a7e9"},"service_data":{},"service_uuids":["0000ffe0-0000-1000-8000-00805f9b34fb","0000fee7-0000-1000-8000-00805f9b34fb"],"source":"2C:CF:67:4A:BF:F2","connectable":true,"time":1741638161.1988375,"tx_power":null}

home-assistant_bms_ble_2025-03-10T20-19-55.863Z.log

@patman15
Copy link
Owner

@rubenclark74 two questions:

  • the other two batteries are also RoyPow?
  • could it be that the battery goes into a sleep mode when no current is flowing? The log looks strange because I'm missing messages. So I need to dig deeper if that assumption is not correct.

@rubenclark74
Copy link
Author

All three are the same model, ordered together (B12100A).
Also, current is flowing on that battery. I would be glad to do more testing on my end or grab longer log sessions if it would help!

@patman15
Copy link
Owner

patman15 commented Mar 11, 2025

Ok, I enabled your other batteries. I'm a bit puzzled that all batteries use a different manufacturer_id not sure whether there are really 3 or if it is purely random. Second, I do not understand the log you sent. The shall not happen at all.
Maybe you can send me one, where it switches from working to non-working. Maybe I can see something there. It looks like an issue outside the integration, but I'm not sure.
Let see. Update pushed.

@rubenclark74
Copy link
Author

I agree that the manufacturer ID not matching up is a bit odd. However, I was able to add my other two batteries with your updated code. I then ran a fresh debug log and let them cycle a couple times in hopes that you will be able to identify a cause of the disconnects. Let me know if there is anything else I can do to help!

home-assistant_bms_ble_2025-03-13T01-42-01.496Z.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants