DeebotUniverse / client.py

Deebot client library in python
https://deebot.readthedocs.io
GNU General Public License v3.0
28 stars 43 forks source link

Update error code mappings #586

Closed giuliodali closed 1 week ago

giuliodali commented 3 weeks ago

Checks

The problem

My Deebot in Home Assistant keeps showing error with a description of "TODO: unknown" and I've found this project as having the error code mapping. I've also found this list of codes that is similar but much richer. Could the error and event codes in this project use the same list as here:

On which deebot device (vacuum) you have the issue?

Deebot T20 Omni

Which version of the deebot-client are you using?

HA Core 2024.10.2

Country

uk

Continent

eu

Anything in the logs that might be useful for us?

2024-10-15 21:56:24.765 DEBUG (MainThread) [deebot_client.authentication] Success calling api url=https://portal-eu.ecouser.net/api/iot/devmanager.do, params={......}, response={'ret': 'ok', 'resp': {'header': {'pri': 1, 'tzm': 0, 'ts': '1729025784152', 'ver': '0.0.1', 'fwVer': '1.22.0', 'hwVer': '0.1.1', 'wkVer': '0.1.54'}, 'body': {'code': 0, 'msg': 'ok', 'data': {'code': [312]}}}, 'id': 'NPbG', 'payloadType': 'j'}
2024-10-15 21:56:24.766 DEBUG (MainThread) [deebot_client.event_bus] Notify subscribers with StateEvent(state=<State.ERROR: 5>)
2024-10-15 21:56:24.766 DEBUG (MainThread) [deebot_client.event_bus] Notify subscribers with ErrorEvent(code=312, description='TODO: unknown')

Additional information

No response

flubshi commented 2 weeks ago

For the error codes only 312 seems to be missing. It was recently (3 months ago) added to the other project. Not sure if event codes are added in the same file.