Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added additional OperatingModes and FaultStatuses for dreamevacuum #1090

Merged
merged 7 commits into from
Jul 8, 2021
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions miio/dreamevacuum_miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,14 @@ class CleaningMode(Enum):

class OperatingMode(Enum):
Unknown = -1
Paused = 1
Cleaning = 2
GoCharging = 3
Paused = 14
rytilahti marked this conversation as resolved.
Show resolved Hide resolved
Charging = 6
ManualCleaning = 13
Sleeping = 14
ManualPaused = 17
ZonedCleaning = 19


class FaultStatus(Enum):
Expand All @@ -74,6 +79,7 @@ class DeviceStatus(Enum):
Error = 4
GoCharging = 5
Charging = 6
ManualSweeping = 13


class DreameVacuumStatus(DeviceStatusContainer):
Expand Down Expand Up @@ -281,7 +287,7 @@ def get_properties_for_mapping(self, *, max_properties=15) -> list:
Method was copied from the base class to change the value of max_properties to
10. This change is needed to avoid "Checksum error" messages from the device.

# TODO: miotdevice class should have a possibility to define its max_properties value
#TODO: MiotDevice class should have a possibility to define its max_properties value
"""

# We send property key in "did" because it's sent back via response and we can identify the property.
Expand Down