miio.integrations.roidmi.vacuum.roidmivacuum_miot module
Vacuum Eve Plus (roidmi.vacuum.v60)
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.ChargingState(value)[source]
Bases:
Enum
An enumeration.
- Charging = 1
- Discharging = 2
- NotChargeable = 4
- Unknown = -1
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.FanSpeed(value)[source]
Bases:
Enum
An enumeration.
- Basic = 2
- FullSpeed = 4
- Silent = 1
- Strong = 3
- Sweep = 0
- Unknown = -1
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.PathMode(value)[source]
Bases:
Enum
An enumeration.
- Normal = 0
- RepeatMopping = 2
- Unknown = -1
- YMopping = 1
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.RoidmiCleaningSummary(data)[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.
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.RoidmiConsumableStatus(data)[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 values returned from the device.
- 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.roidmi.vacuum.roidmivacuum_miot.RoidmiState(value)[source]
Bases:
Enum
An enumeration.
- Charging = 6
- Dormant = 1
- Error = 7
- FindChargerPause = 11
- Fullcharge = 9
- GoCharging = 5
- Idle = 2
- Paused = 3
- Rfctrl = 8
- Shutdown = 10
- Sweeping = 4
- Unknown = -1
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.RoidmiVacuumMiot(ip: str | None = None, token: str | None = None, start_id: int = 0, debug: int = 0, lazy_discover: bool = True, timeout: int | None = None, *, model: str | None = None, mapping: Dict[str, Dict[str, Any]] | None = None)[source]
Bases:
MiotDevice
Interface for Vacuum Eve Plus (roidmi.vacuum.v60)
- actions() DescriptorCollection[ActionDescriptor]
Return device actions.
- call_action_by(siid, aiid, params=None)
Call an action.
- cleaning_summary() RoidmiCleaningSummary [source]
Return information about cleaning runs.
- configure_wifi(ssid, password, uid=0, extra_params=None)
Configure the wifi settings.
- consumable_status() RoidmiConsumableStatus [source]
Return information about consumables.
- descriptors() DescriptorCollection[Descriptor]
Return a collection containing all descriptors for the device.
- classmethod get_device_group()
- get_properties(properties, *, property_getter='get_prop', max_properties=None)
Request properties in slices based on given max_properties.
This is necessary as some devices have limitation on how many properties can be queried at once.
If max_properties is None, all properties are requested at once.
- info(*, skip_cache=False) DeviceInfo
Get (and cache) miIO protocol information from the device.
This includes information about connected wlan network, and hardware and software versions.
- Parameters:
bool (skip_cache) – Skip the cache
- raw_command(command, parameters)
Send a raw command to the device. This is mostly useful when trying out commands which are not implemented by a given device instance.
- send(command: str, parameters: Any | None = None, retry_count: int | None = None, *, extra_parameters=None) Any
Send a command to the device.
Basic format of the request: {“id”: 1234, “method”: command, “parameters”: parameters}
extra_parameters allows passing elements to the top-level of the request. This is necessary for some devices, such as gateway devices, which expect the sub-device identifier to be on the top-level.
- send_handshake()
Send initial handshake to the device.
- sensors() DescriptorCollection[PropertyDescriptor]
Return read-only properties.
- set_dust_collection_frequency(dust_collection_frequency: int)[source]
Set frequency for emptying the dust bin.
Example: 2 means the dust bin is emptied every second cleaning.
- set_lidar_collision_sensor(lidar_collision: bool)[source]
When ON, the robot will use lidar as the main detection sensor to help reduce collisions.
- set_property_by(siid: int, piid: int, value: int | float | str | bool, *, value_type: Any | None = None, name: str | None = None)
Set a single property (siid/piid) to given value.
value_type can be given to convert the value to wanted type, allowed types are: int, float, bool, str
- set_timing(timing: str)[source]
Set repeated clean timing.
Set timing to 9:00 Monday-Friday, rooms:[12,10] timing = ‘{“time”:[[32400,1,3,0,[1,2,3,4,5],0,[12,10],null]],”tz”:2,”tzs”:7200}’ See also
RoidmiVacuumStatus.timing()
NOTE: setting timing will override existing settings
- set_water_level(water_level: WaterLevel)[source]
Set water_level.
- settings() DescriptorCollection[PropertyDescriptor]
Return settable properties.
- status() RoidmiVacuumStatus [source]
State of the vacuum.
- supports_miot() bool
Return True if the device supports miot commands.
This requests a single property (siid=1, piid=1) and returns True on success.
- update_state()
Return current update state.
- retry_count = 3
- supported_models = ['roidmi.vacuum.v60']
- timeout = 5
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.RoidmiVacuumStatus(data)[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 charging_state: ChargingState
Charging state (Charging/Discharging)
- property dust_collection_frequency: int
Frequency for emptying the dust bin.
Example: 2 means the dust bin is emptied every second cleaning.
- property error: str
Human readable error description, see also
error_code()
.
- property is_lidar_collision_sensor: bool
When ON, the robot will use lidar as the main detection sensor to help reduce collisions.
- property state: RoidmiState
Human readable state description, see also
state_code()
.
- property timing: str
Repeated cleaning.
Example:
{"time":[ [32400,1,3,0,[1,2,3,4,5],0,[12,10],null], [57600,0,1,2,[1,2,3,4,5,6,0],2,[],null] ], "tz":2,"tzs":7200 }
- Cleaning 1::
32400 = startTime(9:00) 1=Enabled 3=FanSpeed.Strong 0=SweepType.Sweep [1,2,3,4,5]=Monday-Friday 0=WaterLevel [12,10]=List of rooms null: ?Might be related to “Customize”?
- Cleaning 2::
57600 = startTime(16:00) 0=Disabled 1=FanSpeed.Silent 2=SweepType.MopAndSweep [1,2,3,4,5,6,0]=Monday-Sunday 2=WaterLevel.Second []=All rooms null: ?Might be related to “Customize”?
tz/tzs= time-zone
- property water_level: WaterLevel
Get current water level.
- class miio.integrations.roidmi.vacuum.roidmivacuum_miot.SweepMode(value)[source]
Bases:
Enum
An enumeration.
- AlongWall = 10
- AmartArea = 8
- Area = 2
- Curpoint = 3
- DepthTotal = 9
- Idle = 0
- Point = 4
- Smart = 7
- Total = 1
- Unknown = -1