miio.integrations.vacuum.roidmi.roidmivacuum_miot module¶
Vacuum Eve Plus (roidmi.vacuum.v60)
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.ChargingState(value)[source]¶
Bases:
enum.Enum
An enumeration.
- Charging = 1¶
- Discharging = 2¶
- NotChargeable = 4¶
- Unknown = -1¶
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.FanSpeed(value)[source]¶
Bases:
enum.Enum
An enumeration.
- Basic = 2¶
- FullSpeed = 4¶
- Silent = 1¶
- Strong = 3¶
- Sweep = 0¶
- Unknown = -1¶
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.PathMode(value)[source]¶
Bases:
enum.Enum
An enumeration.
- Normal = 0¶
- RepeatMopping = 2¶
- Unknown = -1¶
- YMopping = 1¶
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.RoidmiCleaningSummary(data)[source]¶
Bases:
miio.device.DeviceStatus
Contains summarized information about available cleaning runs.
- property total_duration: datetime.timedelta¶
Total cleaning duration.
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.RoidmiConsumableStatus(data)[source]¶
Bases:
miio.device.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.
- property filter: datetime.timedelta¶
Filter usage time.
- property filter_left: datetime.timedelta¶
How long until the filter should be changed.
- property main_brush: datetime.timedelta¶
Main brush usage time.
- property main_brush_left: datetime.timedelta¶
How long until the main brush should be changed.
- property sensor_dirty: datetime.timedelta¶
Return time since last sensor clean.
- property sensor_dirty_left: datetime.timedelta¶
How long until the sensors should be cleaned.
- property side_brush: datetime.timedelta¶
Main brush usage time.
- property side_brush_left: datetime.timedelta¶
How long until the side brushes should be changed.
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.RoidmiState(value)[source]¶
Bases:
enum.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.vacuum.roidmi.roidmivacuum_miot.RoidmiVacuumMiot(ip: Optional[str] = None, token: Optional[str] = None, start_id: int = 0, debug: int = 0, lazy_discover: bool = True, timeout: Optional[int] = None, *, model: Optional[str] = None, mapping: Optional[Dict[str, Dict[str, Any]]] = None)[source]¶
Bases:
miio.miot_device.MiotDevice
,miio.interfaces.vacuuminterface.VacuumInterface
Interface for Vacuum Eve Plus (roidmi.vacuum.v60)
- call_action(*args, **kwargs)¶
- call_action_by(*args, **kwargs)¶
- cleaning_summary(*args, **kwargs)¶
- configure_wifi(ssid, password, uid=0, extra_params=None)¶
Configure the wifi settings.
- consumable_status(*args, **kwargs)¶
- disable_dnd(*args, **kwargs)¶
- fan_speed_presets(*args, **kwargs)¶
Return available fan speed presets.
The returned object is a dictionary where the key is user-readable name and the value is input for
set_fan_speed_preset()
.
- 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.
- Parameters
:return List of property values.
- get_property_by(*args, **kwargs)¶
- home(*args, **kwargs)¶
Return vacuum robot to home station/dock.
- identify(*args, **kwargs)¶
- info(*args, **kwargs)¶
- pause()¶
Pause cleaning.
- Raises
RuntimeError – if the method is not supported by the device
- raw_command(*args, **kwargs)¶
- reset_filter_life(*args, **kwargs)¶
- reset_mainbrush_life(*args, **kwargs)¶
- reset_sensor_dirty_life(*args, **kwargs)¶
- reset_sidebrush_life(*args, **kwargs)¶
- send(command: str, parameters: Optional[Any] = None, retry_count: Optional[int] = 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.
- set_carpet_mode(*args, **kwargs)¶
- set_dnd(*args, **kwargs)¶
- set_double_clean(*args, **kwargs)¶
- set_dust_collection_frequency(*args, **kwargs)¶
- set_fan_speed_preset(*args, **kwargs)¶
Set fan speed preset speed.
- Parameters
speed_preset – a value from
fan_speed_presets()
- Raises
ValueError – for invalid preset value
- set_fanspeed(*args, **kwargs)¶
- set_led(*args, **kwargs)¶
- set_lidar_collision_sensor(*args, **kwargs)¶
- set_path_mode(*args, **kwargs)¶
- set_property_by(*args, **kwargs)¶
- set_sound_muted(*args, **kwargs)¶
- set_sound_volume(*args, **kwargs)¶
- set_station_led(*args, **kwargs)¶
- set_sweep_type(*args, **kwargs)¶
- set_timing(*args, **kwargs)¶
- set_water_level(*args, **kwargs)¶
- start(*args, **kwargs)¶
Start cleaning.
- start_dust(*args, **kwargs)¶
- status(*args, **kwargs)¶
- stop(*args, **kwargs)¶
Stop cleaning.
- test_properties(*args, **kwargs)¶
- update_state()¶
Return current update state.
- retry_count = 3¶
- supported_models = dict_keys(['roidmi.vacuum.v60'])¶
- timeout = 5¶
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.RoidmiVacuumStatus(data)[source]¶
Bases:
miio.device.DeviceStatus
Container for status reports from the vacuum.
- property charging_state: miio.integrations.vacuum.roidmi.roidmivacuum_miot.ChargingState¶
Charging state (Charging/Discharging)
- property clean_time: datetime.timedelta¶
Time used for cleaning (if finished, shows how long it took).
- property dnd_status: miio.integrations.vacuum.roborock.vacuumcontainers.DNDStatus¶
Returns do-not-disturb status.
- 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 fan_speed: miio.integrations.vacuum.roidmi.roidmivacuum_miot.FanSpeed¶
Current fan speed.
- property is_lidar_collision_sensor: bool¶
When ON, the robot will use lidar as the main detection sensor to help reduce collisions.
- property path_mode: miio.integrations.vacuum.roidmi.roidmivacuum_miot.PathMode¶
Current path-mode: normal/y-mopping etc.
- property state: miio.integrations.vacuum.roidmi.roidmivacuum_miot.RoidmiState¶
Human readable state description, see also
state_code()
.
- property sweep_mode: miio.integrations.vacuum.roidmi.roidmivacuum_miot.SweepMode¶
Sweep mode point/area/total etc.
- property sweep_type: miio.integrations.vacuum.roidmi.roidmivacuum_miot.SweepType¶
Current sweep type sweep/mop/sweep&mop.
- 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: miio.integrations.vacuum.roidmi.roidmivacuum_miot.WaterLevel¶
Get current water level.
- class miio.integrations.vacuum.roidmi.roidmivacuum_miot.SweepMode(value)[source]¶
Bases:
enum.Enum
An enumeration.
- AlongWall = 10¶
- AmartArea = 8¶
- Area = 2¶
- Curpoint = 3¶
- DepthTotal = 9¶
- Idle = 0¶
- Point = 4¶
- Smart = 7¶
- Total = 1¶
- Unknown = -1¶