Skip to content

Commit

Permalink
Merge pull request #17 from bittles/dev
Browse files Browse the repository at this point in the history
cant comment block inside class call
  • Loading branch information
bittles authored Jan 19, 2023
2 parents 9355f86 + dc032f6 commit cacb0b4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion custom_components/ecovacs/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "ecovacs",
"name": "Ecovacs Bumper",
"version": "1.5.2",
"version": "1.5.3",
"documentation": "https://github.com/bittles/ha_ecovacs_bumper",
"issue_tracker": "https://github.com/bittles/ha_ecovacs_bumper/issues",
"requirements": ["sleekxmppfs==1.4.1", "requests>=2.18", "pycryptodome>=3.4", "pycountry-convert>=0.5", "paho-mqtt>=1.4", "stringcase>=1.2"],
Expand Down
34 changes: 17 additions & 17 deletions custom_components/ecovacs/sucks.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,28 +117,28 @@ def _handle_error(self, event):

# if not error == '':

"""
Errors
The bot broadcasts error codes for a number of cases.

<ctl td="error" error="BatteryLow" errno="101"></ctl>
# Errors
# The bot broadcasts error codes for a number of cases.

The latest error can be requested like so:
# <ctl td="error" error="BatteryLow" errno="101"></ctl>

Request <ctl td="GetError" />
Response <ctl ret="ok" errs="100"/>
However in some cases the robot sends to code 100 shortly after an error has occurred, meaning that we cannot trust the GetError request to contain the last relevant error. For example, if the robot gets stuck it broadcasts 102 HostHang, then proceeds to stop and broadcasts 100 NoError.
# The latest error can be requested like so:

Known error codes
# Request <ctl td="GetError" />
# Response <ctl ret="ok" errs="100"/>
# However in some cases the robot sends to code 100 shortly after an error has occurred, meaning that we cannot trust the GetError request to contain the last relevant error. For example, if the robot gets stuck it broadcasts 102 HostHang, then proceeds to stop and broadcasts 100 NoError.

# Known error codes

# 100 NoError: Robot is operational
# 101 BatteryLow: Low battery
# 102 HostHang: Robot is stuck
# 103 WheelAbnormal: Wheels are not moving as expected
# 104 DownSensorAbnormal: Down sensor is getting abnormal values
# 110 NoDustBox: Dust Bin Not installed
# These codes are taken from model M81 Pro. Error codes may differ between models.

100 NoError: Robot is operational
101 BatteryLow: Low battery
102 HostHang: Robot is stuck
103 WheelAbnormal: Wheels are not moving as expected
104 DownSensorAbnormal: Down sensor is getting abnormal values
110 NoDustBox: Dust Bin Not installed
These codes are taken from model M81 Pro. Error codes may differ between models.
"""

def _handle_life_span(self, event):
type = event['type']
Expand Down

0 comments on commit cacb0b4

Please sign in to comment.