Skip to content

Commit

Permalink
added entries to Dreame info.state
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAchilleus committed Jan 10, 2025
1 parent fc87ee2 commit 0f4fe38
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
16 changes: 14 additions & 2 deletions lib/dreame.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ const DreameState = {
SWEEPING_AND_MOPPING: 12,
CHARGING_COMPLETED: 13,
UPGRADING: 14,
WATER_INSPECTING: 19,
WASHING_MOP_PAUSE: 21,
DUST_COLLECTION: 22,
REMOTE_CLEAN: 23
};

const DreameWashBaseState = {
Expand All @@ -138,15 +142,23 @@ const DreameProperties = {
control_mapping: {
0: DreameState.UNKNOWN,
3: DreameState.IDLE,
5: [DreameState.SWEEPING_AND_MOPPING, DreameState.SWEEPING],
5: DreameState.SWEEPING,
6: DreameState.RETURNING,
8: [DreameState.CHARGING, DreameState.CHARGING_COMPLETED],
8: DreameState.CHARGING,
10: DreameState.PAUSED,
12: DreameState.ERROR,
14: DreameState.UPGRADING,
22: DreameState.DUST_COLLECTION,
26: DreameState.RETURNING_WASHING,
27: DreameState.WASHING_MOP_PAUSE,
28: DreameState.DRYING,
29: DreameState.WASHING,
30: DreameState.MOPPING,
31: DreameState.SWEEPING_AND_MOPPING,
32: DreameState.REMOTE_CLEAN,
33: DreameState.WATER_INSPECTING,
34: DreameState.CHARGING_COMPLETED,
35: DreameState.BUILDING,
},
type: 'int',
},
Expand Down
10 changes: 8 additions & 2 deletions lib/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ module.exports = {
role: 'value.state',
read: true,
write: false,
max: 30,
max: 40,
states: {
0: 'Unknown',
1: 'Initiating',
Expand Down Expand Up @@ -1194,7 +1194,13 @@ module.exports = {
26: 'Going to Mop cleaning',
27: 'Cleaning Mop paused',
28: 'Drying Mop',
29: 'Washing',
29: 'Washing Mop',
30: 'Mopping',
31: 'Cleaning and Mopping',
32: 'Remote clean',
33: 'Water inspecting',
34: 'Charging complete',
35: 'Building',
},
},
native: {},
Expand Down

0 comments on commit 0f4fe38

Please sign in to comment.