roborock.data.dyad.dyad_code_mappings

  1from ..code_mappings import RoborockEnum
  2
  3
  4class RoborockDyadStateCode(RoborockEnum):
  5    unknown = -999
  6    fetching = -998  # Obtaining Status
  7    fetch_failed = -997  # Failed to obtain device status. Try again later.
  8    updating = -996
  9    washing = 1
 10    ready = 2
 11    charging = 3
 12    mop_washing = 4
 13    self_clean_cleaning = 5
 14    self_clean_deep_cleaning = 6
 15    self_clean_rinsing = 7
 16    self_clean_dehydrating = 8
 17    drying = 9
 18    ventilating = 10  # drying
 19    reserving = 12
 20    mop_washing_paused = 13
 21    dusting_mode = 14
 22
 23
 24class DyadSelfCleanMode(RoborockEnum):
 25    self_clean = 1
 26    self_clean_and_dry = 2
 27    dry = 3
 28    ventilation = 4
 29
 30
 31class DyadSelfCleanLevel(RoborockEnum):
 32    normal = 1
 33    deep = 2
 34
 35
 36class DyadWarmLevel(RoborockEnum):
 37    normal = 1
 38    deep = 2
 39
 40
 41class DyadMode(RoborockEnum):
 42    wash = 1
 43    wash_and_dry = 2
 44    dry = 3
 45
 46
 47class DyadCleanMode(RoborockEnum):
 48    auto = 1
 49    max = 2
 50    dehydration = 3
 51    power_saving = 4
 52
 53
 54class DyadSuction(RoborockEnum):
 55    l1 = 1
 56    l2 = 2
 57    l3 = 3
 58    l4 = 4
 59    l5 = 5
 60    l6 = 6
 61
 62
 63class DyadWaterLevel(RoborockEnum):
 64    l1 = 1
 65    l2 = 2
 66    l3 = 3
 67    l4 = 4
 68
 69
 70class DyadBrushSpeed(RoborockEnum):
 71    l1 = 1
 72    l2 = 2
 73
 74
 75class DyadCleanser(RoborockEnum):
 76    none = 0
 77    normal = 1
 78    deep = 2
 79    max = 3
 80
 81
 82class DyadError(RoborockEnum):
 83    none = 0
 84    dirty_tank_full = 20000  # Dirty tank full. Empty it
 85    water_level_sensor_stuck = 20001  # Water level sensor is stuck. Clean it.
 86    clean_tank_empty = 20002  # Clean tank empty. Refill now
 87    clean_head_entangled = 20003  # Check if the cleaning head is entangled with foreign objects.
 88    clean_head_too_hot = 20004  # Cleaning head temperature protection. Wait for the temperature to return to normal.
 89    fan_protection_e5 = 10005  # Fan protection (E5). Restart the vacuum cleaner.
 90    cleaning_head_blocked = 20005  # Remove blockages from the cleaning head and pipes.
 91    temperature_protection = 20006  # Temperature protection. Wait for the temperature to return to normal
 92    fan_protection_e4 = 10004  # Fan protection (E4). Restart the vacuum cleaner.
 93    fan_protection_e9 = 10009  # Fan protection (E9). Restart the vacuum cleaner.
 94    battery_temperature_protection_e0 = 10000
 95    battery_temperature_protection = (
 96        20007  # Battery temperature protection. Wait for the temperature to return to a normal range.
 97    )
 98    battery_temperature_protection_2 = 20008
 99    power_adapter_error = 20009  # Check if the power adapter is working properly.
100    dirty_charging_contacts = 10007  # Disconnection between the device and dock. Wipe charging contacts.
101    low_battery = 20017  # Low battery level. Charge before starting self-cleaning.
102    battery_under_10 = 20018  # Charge until the battery level exceeds 10% before manually starting self-cleaning.
class RoborockDyadStateCode(roborock.data.code_mappings.RoborockEnum):
 5class RoborockDyadStateCode(RoborockEnum):
 6    unknown = -999
 7    fetching = -998  # Obtaining Status
 8    fetch_failed = -997  # Failed to obtain device status. Try again later.
 9    updating = -996
10    washing = 1
11    ready = 2
12    charging = 3
13    mop_washing = 4
14    self_clean_cleaning = 5
15    self_clean_deep_cleaning = 6
16    self_clean_rinsing = 7
17    self_clean_dehydrating = 8
18    drying = 9
19    ventilating = 10  # drying
20    reserving = 12
21    mop_washing_paused = 13
22    dusting_mode = 14

Roborock Enum for codes with int values

unknown = <RoborockDyadStateCode.unknown: -999>
fetching = <RoborockDyadStateCode.fetching: -998>
fetch_failed = <RoborockDyadStateCode.fetch_failed: -997>
updating = <RoborockDyadStateCode.updating: -996>
self_clean_cleaning = <RoborockDyadStateCode.self_clean_cleaning: 5>
self_clean_deep_cleaning = <RoborockDyadStateCode.self_clean_deep_cleaning: 6>
self_clean_rinsing = <RoborockDyadStateCode.self_clean_rinsing: 7>
self_clean_dehydrating = <RoborockDyadStateCode.self_clean_dehydrating: 8>
ventilating = <RoborockDyadStateCode.ventilating: 10>
mop_washing_paused = <RoborockDyadStateCode.mop_washing_paused: 13>
dusting_mode = <RoborockDyadStateCode.dusting_mode: 14>
class DyadSelfCleanMode(roborock.data.code_mappings.RoborockEnum):
25class DyadSelfCleanMode(RoborockEnum):
26    self_clean = 1
27    self_clean_and_dry = 2
28    dry = 3
29    ventilation = 4

Roborock Enum for codes with int values

self_clean = <DyadSelfCleanMode.self_clean: 1>
self_clean_and_dry = <DyadSelfCleanMode.self_clean_and_dry: 2>
ventilation = <DyadSelfCleanMode.ventilation: 4>
class DyadSelfCleanLevel(roborock.data.code_mappings.RoborockEnum):
32class DyadSelfCleanLevel(RoborockEnum):
33    normal = 1
34    deep = 2

Roborock Enum for codes with int values

class DyadWarmLevel(roborock.data.code_mappings.RoborockEnum):
37class DyadWarmLevel(RoborockEnum):
38    normal = 1
39    deep = 2

Roborock Enum for codes with int values

normal = <DyadWarmLevel.normal: 1>
deep = <DyadWarmLevel.deep: 2>
class DyadMode(roborock.data.code_mappings.RoborockEnum):
42class DyadMode(RoborockEnum):
43    wash = 1
44    wash_and_dry = 2
45    dry = 3

Roborock Enum for codes with int values

wash = <DyadMode.wash: 1>
wash_and_dry = <DyadMode.wash_and_dry: 2>
dry = <DyadMode.dry: 3>
class DyadCleanMode(roborock.data.code_mappings.RoborockEnum):
48class DyadCleanMode(RoborockEnum):
49    auto = 1
50    max = 2
51    dehydration = 3
52    power_saving = 4

Roborock Enum for codes with int values

auto = <DyadCleanMode.auto: 1>
max = <DyadCleanMode.max: 2>
dehydration = <DyadCleanMode.dehydration: 3>
power_saving = <DyadCleanMode.power_saving: 4>
class DyadSuction(roborock.data.code_mappings.RoborockEnum):
55class DyadSuction(RoborockEnum):
56    l1 = 1
57    l2 = 2
58    l3 = 3
59    l4 = 4
60    l5 = 5
61    l6 = 6

Roborock Enum for codes with int values

l1 = <DyadSuction.l1: 1>
l2 = <DyadSuction.l2: 2>
l3 = <DyadSuction.l3: 3>
l4 = <DyadSuction.l4: 4>
l5 = <DyadSuction.l5: 5>
l6 = <DyadSuction.l6: 6>
class DyadWaterLevel(roborock.data.code_mappings.RoborockEnum):
64class DyadWaterLevel(RoborockEnum):
65    l1 = 1
66    l2 = 2
67    l3 = 3
68    l4 = 4

Roborock Enum for codes with int values

l1 = <DyadWaterLevel.l1: 1>
l2 = <DyadWaterLevel.l2: 2>
l3 = <DyadWaterLevel.l3: 3>
l4 = <DyadWaterLevel.l4: 4>
class DyadBrushSpeed(roborock.data.code_mappings.RoborockEnum):
71class DyadBrushSpeed(RoborockEnum):
72    l1 = 1
73    l2 = 2

Roborock Enum for codes with int values

l1 = <DyadBrushSpeed.l1: 1>
l2 = <DyadBrushSpeed.l2: 2>
class DyadCleanser(roborock.data.code_mappings.RoborockEnum):
76class DyadCleanser(RoborockEnum):
77    none = 0
78    normal = 1
79    deep = 2
80    max = 3

Roborock Enum for codes with int values

none = <DyadCleanser.none: 0>
normal = <DyadCleanser.normal: 1>
deep = <DyadCleanser.deep: 2>
max = <DyadCleanser.max: 3>
class DyadError(roborock.data.code_mappings.RoborockEnum):
 83class DyadError(RoborockEnum):
 84    none = 0
 85    dirty_tank_full = 20000  # Dirty tank full. Empty it
 86    water_level_sensor_stuck = 20001  # Water level sensor is stuck. Clean it.
 87    clean_tank_empty = 20002  # Clean tank empty. Refill now
 88    clean_head_entangled = 20003  # Check if the cleaning head is entangled with foreign objects.
 89    clean_head_too_hot = 20004  # Cleaning head temperature protection. Wait for the temperature to return to normal.
 90    fan_protection_e5 = 10005  # Fan protection (E5). Restart the vacuum cleaner.
 91    cleaning_head_blocked = 20005  # Remove blockages from the cleaning head and pipes.
 92    temperature_protection = 20006  # Temperature protection. Wait for the temperature to return to normal
 93    fan_protection_e4 = 10004  # Fan protection (E4). Restart the vacuum cleaner.
 94    fan_protection_e9 = 10009  # Fan protection (E9). Restart the vacuum cleaner.
 95    battery_temperature_protection_e0 = 10000
 96    battery_temperature_protection = (
 97        20007  # Battery temperature protection. Wait for the temperature to return to a normal range.
 98    )
 99    battery_temperature_protection_2 = 20008
100    power_adapter_error = 20009  # Check if the power adapter is working properly.
101    dirty_charging_contacts = 10007  # Disconnection between the device and dock. Wipe charging contacts.
102    low_battery = 20017  # Low battery level. Charge before starting self-cleaning.
103    battery_under_10 = 20018  # Charge until the battery level exceeds 10% before manually starting self-cleaning.

Roborock Enum for codes with int values

none = <DyadError.none: 0>
dirty_tank_full = <DyadError.dirty_tank_full: 20000>
water_level_sensor_stuck = <DyadError.water_level_sensor_stuck: 20001>
clean_tank_empty = <DyadError.clean_tank_empty: 20002>
clean_head_entangled = <DyadError.clean_head_entangled: 20003>
clean_head_too_hot = <DyadError.clean_head_too_hot: 20004>
fan_protection_e5 = <DyadError.fan_protection_e5: 10005>
cleaning_head_blocked = <DyadError.cleaning_head_blocked: 20005>
temperature_protection = <DyadError.temperature_protection: 20006>
fan_protection_e4 = <DyadError.fan_protection_e4: 10004>
fan_protection_e9 = <DyadError.fan_protection_e9: 10009>
battery_temperature_protection_e0 = <DyadError.battery_temperature_protection_e0: 10000>
battery_temperature_protection = <DyadError.battery_temperature_protection: 20007>
battery_temperature_protection_2 = <DyadError.battery_temperature_protection_2: 20008>
power_adapter_error = <DyadError.power_adapter_error: 20009>
dirty_charging_contacts = <DyadError.dirty_charging_contacts: 10007>
low_battery = <DyadError.low_battery: 20017>
battery_under_10 = <DyadError.battery_under_10: 20018>