-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
[Bug]: Newer versions of Bluetti firmware use BLE encryption #120
Comments
also experiencing the same issue, though good to know others were able to sus it out |
I have made tons of progress reverse engineering the protocol. It appears that once you get past the encryption that the underlying data exchange is the same. As for merging this with the integration, not sure I will be much use there. |
Seems like my new AC70 also uses encryption ... |
From what their marketing people told me, they added a "password" function to the Bluetooth control to prevent people walking around RV parks from turning off other people's power. I don't have details on how they added it. |
@Patrick762 I have the encryption process mostly worked out in a test script that I wrote in python. I haven't had much time to complete the final steps of the handshake but I at least know what is happening. Hit me up on Discord (I'm in your channel) and I can share it with you if you want. I would like to see if it is universal across the different models. |
the same here, also a AC180 UPDATE: todays update to hassio 13.0 finished, after that, state of charge is displayed |
Same here with an AC 180 |
Any News on this? Just updated my ep600 to the newest version... now nothing works ... :-( |
Yeah definitely don't update if your stuff is working. I haven't had a bunch of time to finish dissecting the encryption due to work stress. It's definitely not standard and I'm not sure it will work with the HA integration. Might be portable to the MQTT project that exists however. |
Yeah, but had to Update my EP600. Because I get a second one and the parallel grid connection didint work until I updated both EP600 to the newest available FW.. :-( UPDATE: |
guys, i just got the AC180, and while the device connects, only 2 entities a created and nothing shows up. |
@jsaiko are you able to share the current code, irrelevant of the state? I'd love to pick it up as I have some time to put into some projects and this one is a bug bear of mine that I'd like to sort out. |
I unfortunately just did a system format and dont have the most recent version of the code 😞 I did find an older copy though, not sure how broken it is or isn't. Maybe I can find time to touch it up soon. |
Thanks @jsaiko. I'll spend some time during the week having a look through and seeing what I can add. Will share back here. |
@jsaiko (let me know if you don't want me tagging you). I've gone a slightly different route; I've decompiled the Android APK for Bluetti. I've attached the connection manager classes and associated services to this. Item to note is one of the consts defined is ;
My java and cryptography skills are a bit rusty, at best. I'll spend some time over next few days trying to compare this to what you've implemented (or atlernatively, just reimplement the below in Python once I've got my head around it). If something below is an aha moment for you and it's quick for you to implement this to finalise, call it out and I'll hold. The method bleEncryptedHandler is below for reference.
|
@russellproud I was using the APK as a reference when creating the script too ;) |
Haha yeah, I came to that conclusion after posting this :) |
Hi, I don't suppose anyone has found a way of getting at least the percentage available info into homeassistant on an EB3A? appreciate there is the encryption issue but didn't know if anyone had found a workaround to get the raw data into HA somehow. |
If your device uses encryption, even reading the values is not possible without decryption. |
it's odd as they have enabled encryption (from what people say) to prevent other people accessing your device however the app has local option which just finds and connects to devices close by without having to authenticate. that would therefore not stop people accessing your device whether it's using encryption or no encryption, you just need the app. |
There is an option in the app to set a password. The “no login” part of the app should ask for the password at connect time if a password has been set on the device.
If no password is set, then the device seems to use encryption anyway with a default password.
Thanks!
-Jeff
On Dec 13, 2024, at 3:40 PM, blackys7312 ***@***.***> wrote:
it's odd as they have enabled encryption (from what people say) to prevent other people accessing your device however the app has local option which just finds and connects to devices close by without having to authenticate. that would therefore not stop people accessing your device whether it's using encryption or no encryption, you just need the app.
—
Reply to this email directly, view it on GitHub<#120 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BDQE2HJUHZP7LZ7YA2RACZL2FNV75AVCNFSM6AAAAABKQ2IA3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBSGU2TGMBYGA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
What happened?
I have a new AC180 which does not work with any known currently available open source solution. After some digging, it appears the device is using BLE encryption. Based on my troubleshooting, the "2A 2A" is a signature to start the encryption process.
These notifications appear then a few seconds later the device disconnects if no action is taken.
What version of our software are you running?
0.1.2
What device are you seeing the problem on?
AC180
IOT v9046.01
ARM v2107.02
DSP v2102.02
What bluetooth connection are you using?
Internal bluetooth adapter
Have you changed the integration settings?
false
Integration settings (if you changed them)
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: