Skip to content

Commit

Permalink
Error code, Viomimode, Viomibintype
Browse files Browse the repository at this point in the history
added:

error codes
    2103: "Charging",
    2105: "Fully charged"

saw the 4 but don´t know what it means, but so no error message in cli command
class ViomiMode(Enum):
    Unknown = 4

class ViomiBinType(Enum):
    NoBin = 0
  • Loading branch information
fs79 authored Aug 15, 2020
1 parent db2cb9c commit 5a3f2f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions miio/viomivacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
530: "Mop and water tank missing",
531: "Water tank is not installed",
2101: "Unsufficient battery, continuing cleaning after recharge",
2103: "Charging",
2105: "Fully charged",
}


Expand All @@ -63,7 +65,7 @@ class ViomiMode(Enum):
Vacuum = 0 # No Mop, Vacuum only
VacuumAndMop = 1
Mop = 2

Unknown = 4

class ViomiLanguage(Enum):
CN = 1 # Chinese (default)
Expand Down Expand Up @@ -94,7 +96,7 @@ class ViomiBinType(Enum):
Vacuum = 1
Water = 2
VacuumAndWater = 3

NoBin = 0

class ViomiWaterGrade(Enum):
Low = 11
Expand Down

0 comments on commit 5a3f2f4

Please sign in to comment.