Skip to content

Comments

Add encrypted telemetry support#7

Merged
flip-dots merged 19 commits intomainfrom
encrypted-telemetry-support
Feb 22, 2026
Merged

Add encrypted telemetry support#7
flip-dots merged 19 commits intomainfrom
encrypted-telemetry-support

Conversation

@flip-dots
Copy link
Owner

@flip-dots flip-dots commented Feb 11, 2026

The latest firmware on Anker power stations no longer publishes the telemetry unencrypted. This PR fixes that by implementing Ankers bizzare encryption protocol which allows this library to work with power stations running the latest firmware.

There are still a few things that I should probably fix before merging this, as there is something slightly off about the way data is decrypted which prevents some values from being read. More investigation needed.

@flip-dots
Copy link
Owner Author

I have fixed the way data is decrypted, turns out that the part of the shared secret that is not used as the AES key is used as the IV. It took me half a day to figure that one out, but all telemetry data is now recoverable. There are probably some other changes I will end up making later (e.g add more sensors) but I am happy to merge this for now since the decryption function is done.

@flip-dots flip-dots merged commit 75f5fa1 into main Feb 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant