Skip to content

Anker Prime 250W "Unexpected end of packet", sensors unavailable #17

@pkolbus

Description

@pkolbus

Hi, recently purchased an Anker Prime 250W charger and attempting to integrate into Home Assistant. Ran across this library and https://github.com/flip-dots/HaSolixBLE which seemed the most promising. When I add to Home Assistant (using #18) i can see the device and sensors but all ports are showing unavailable. (For what it's worth, the discovery/connection is via one of several ESPHome Bluetooth proxies).

(For what it's worth, https://github.com/thomluther/ha-anker-solix also does not work).

I see you've written some great documentation for adding/debugging a device; intend to to dive in to help debug/fix this. If you have any suggestions - things to look at or try -- these would be welcomed.

2026-03-14 19:06:20.374 ERROR (MainThread) [SolixBLE.device] Unexpected end of packet! Data may be missing or invalid! Payload: '00a10101044859710a627e653606c6d0f100b4e2'
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/SolixBLE/device.py", line 389, in _parse_payload
    param_data = bytes([remaining_data.pop(0) for _ in range(0, param_len)])
                        ~~~~~~~~~~~~~~~~~~^^^
IndexError: pop from empty bytearray
2026-03-14 19:06:20.475 ERROR (MainThread) [SolixBLE.device] Unexpected end of packet! Data may be missing or invalid! Payload: '00a10102a202fd00a30144a40101a501028c2e88c598023c7d27d6c9edddf0af9e'
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/SolixBLE/device.py", line 389, in _parse_payload
    param_data = bytes([remaining_data.pop(0) for _ in range(0, param_len)])
                        ~~~~~~~~~~~~~~~~~~^^^
IndexError: pop from empty bytearray
2026-03-14 19:06:20.578 ERROR (MainThread) [SolixBLE.device] Unexpected end of packet! Data may be missing or invalid! Payload: '00a10103a2054553503332a307302e302e302e33a41041514c514a4231463532323030303832a5067ce913833daab78ca884812ed76cba4e013df23dac65'
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/SolixBLE/device.py", line 389, in _parse_payload
    param_data = bytes([remaining_data.pop(0) for _ in range(0, param_len)])
                        ~~~~~~~~~~~~~~~~~~^^^
IndexError: pop from empty bytearray
2026-03-14 19:06:20.679 ERROR (MainThread) [SolixBLE.device] Unexpected end of packet! Data may be missing or invalid! Payload: '002d4f48bf60a98f2ef64e7ec1fd12864c'
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/SolixBLE/device.py", line 389, in _parse_payload
    param_data = bytes([remaining_data.pop(0) for _ in range(0, param_len)])
                        ~~~~~~~~~~~~~~~~~~^^^
IndexError: pop from empty bytearray
2026-03-14 19:06:20.987 ERROR (MainThread) [SolixBLE.device] Unexpected end of packet! Data may be missing or invalid! Payload: '00a140845fba1b20b28172b243e9b37d0b0c706149deb48954ed2d78f3fe960472aa77ca218d1289c35a751941ab064ce9be64778ffc4c08f962d074c5309c6e790e9db76bffcf9ac81660b09313dc879ed0ec'
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/SolixBLE/device.py", line 389, in _parse_payload
    param_data = bytes([remaining_data.pop(0) for _ in range(0, param_len)])
                        ~~~~~~~~~~~~~~~~~~^^^
IndexError: pop from empty bytearray

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions