miio.integrations.roborock.vacuum.vacuumcontainers module
- class miio.integrations.roborock.vacuum.vacuumcontainers.CarpetModeStatus(data)[source]
Bases:
DeviceStatus
Container for carpet mode status.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- class miio.integrations.roborock.vacuum.vacuumcontainers.CleaningDetails(data: List[Any] | Dict[str, Any])[source]
Bases:
DeviceStatus
Contains details about a specific cleaning run.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- class miio.integrations.roborock.vacuum.vacuumcontainers.CleaningSummary(data: List[Any] | Dict[str, Any])[source]
Bases:
DeviceStatus
Contains summarized information about available cleaning runs.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- property ids: List[int]
A list of available cleaning IDs, see also
CleaningDetails
.
- class miio.integrations.roborock.vacuum.vacuumcontainers.ConsumableStatus(data: Dict[str, Any])[source]
Bases:
DeviceStatus
Container for consumable status information, including information about brushes and duration until they should be changed. The methods returning time left are based on the following lifetimes:
Sensor cleanup time: XXX FIXME
Main brush: 300 hours
Side brush: 200 hours
Filter: 150 hours
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- class miio.integrations.roborock.vacuum.vacuumcontainers.DNDStatus(data: Dict[str, Any])[source]
Bases:
DeviceStatus
A container for the do-not-disturb status.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- class miio.integrations.roborock.vacuum.vacuumcontainers.MapList(data: Dict[str, Any])[source]
Bases:
DeviceStatus
Contains a information about the maps/floors of the vacuum.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- class miio.integrations.roborock.vacuum.vacuumcontainers.MopDryerSettings(data: Dict[str, Any])[source]
Bases:
DeviceStatus
Container for mop dryer add-on.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- class miio.integrations.roborock.vacuum.vacuumcontainers.SoundInstallState(value)[source]
Bases:
IntEnum
An enumeration.
- Downloading = 1
- Error = 4
- Installed = 3
- Installing = 2
- Unknown = 0
- class miio.integrations.roborock.vacuum.vacuumcontainers.SoundInstallStatus(data)[source]
Bases:
DeviceStatus
Container for sound installation status.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- property state: SoundInstallState
Installation state.
- class miio.integrations.roborock.vacuum.vacuumcontainers.SoundStatus(data)[source]
Bases:
DeviceStatus
Container for sound status.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- property being_installed
- property current
- class miio.integrations.roborock.vacuum.vacuumcontainers.Timer(data: List[Any], timezone: BaseTzInfo)[source]
Bases:
DeviceStatus
A container for scheduling.
The timers are accessed using an integer ID, which is based on the unix timestamp of the creation time.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- property action: str
The action to be taken on the given time.
Note, this seems to be always ‘start’.
- property id: str
Unique identifier for timer.
Usually a unix timestamp of when the timer was created, but it is not guaranteed. For example, valetudo apparently allows using arbitrary strings for this.
- class miio.integrations.roborock.vacuum.vacuumcontainers.VacuumStatus(data: Dict[str, Any])[source]
Bases:
DeviceStatus
Container for status reports from the vacuum.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- property auto_dust_collection: bool | None
Returns True if auto dust collection is enabled, None if sensor not present.
- property current_map_id: int | None
The id of the current map with regards to the multi map feature,
[3,7,11,15] -> [0,1,2,3].
- property dock_error: str | None
Human readable dock error description, see also
dock_error_code()
.
- property error: str
Human readable error description, see also
error_code()
.
- property fan_speed_preset
- property is_water_box_carriage_attached: bool | None
Return True if water box carriage (mop) is installed, None if sensor not present.
- property is_water_shortage: bool | None
Returns True if water is low in the tank, None if sensor not present.
- property state: str
Human readable state description, see also
state_code()
.
- property vacuum_state: VacuumState
Return vacuum state.