@@ -106,6 +106,9 @@ class RoborockCommand(str, Enum):
106
106
SWITCH_WATER_MARK = "switch_water_mark"
107
107
SET_IDENTIFY_FURNITURE_STATUS = "set_identify_furniture_status"
108
108
GET_CLEAN_RECORD_MAP = "get_clean_record_map"
109
+ GET_ROOM_MAPPING = "get_room_mapping"
110
+ NAME_SEGMENT = "name_segment"
111
+ SET_TIMEZONE = "set_timezone"
109
112
110
113
111
114
@dataclass
@@ -167,23 +170,29 @@ class CommandInfo:
167
170
RoborockCommand .APP_SPOT : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
168
171
RoborockCommand .FIND_ME : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
169
172
RoborockCommand .RESUME_ZONED_CLEAN : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
170
- RoborockCommand .RESUME_SEGMENT_CLEAN : CommandInfo (prefix = b'\x00 \x00 \x00 w ' ),
173
+ RoborockCommand .RESUME_SEGMENT_CLEAN : CommandInfo (prefix = b'\x00 \x00 \x00 \x87 ' ),
171
174
RoborockCommand .RESET_CONSUMABLE : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
172
175
RoborockCommand .LOAD_MULTI_MAP : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
173
176
RoborockCommand .APP_RC_START : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
174
177
RoborockCommand .APP_RC_END : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
175
178
RoborockCommand .APP_RC_MOVE : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
176
- RoborockCommand .APP_GOTO_TARGET : CommandInfo (prefix = b'\x00 \x00 \x00 w ' ),
177
- RoborockCommand .APP_SEGMENT_CLEAN : CommandInfo (prefix = b'\x00 \x00 \x00 w ' ),
179
+ RoborockCommand .APP_GOTO_TARGET : CommandInfo (prefix = b'\x00 \x00 \x00 \x87 ' ),
180
+ RoborockCommand .APP_SEGMENT_CLEAN : CommandInfo (prefix = b'\x00 \x00 \x00 \xc7 ' ),
178
181
RoborockCommand .APP_ZONED_CLEAN : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
179
182
RoborockCommand .APP_START_WASH : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
180
183
RoborockCommand .APP_STOP_WASH : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
181
184
RoborockCommand .SET_FDS_ENDPOINT : CommandInfo (prefix = b'\x00 \x00 \x97 ' ),
182
185
RoborockCommand .ENABLE_LOG_UPLOAD : CommandInfo (prefix = b'\x00 \x00 \x87 ' ),
183
186
RoborockCommand .GET_SOUND_VOLUME : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
184
187
RoborockCommand .TEST_SOUND_VOLUME : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
185
- RoborockCommand .UPD_SERVER_TIMER : CommandInfo (prefix = b'\x00 \x00 \x00 w ' ),
188
+ RoborockCommand .UPD_SERVER_TIMER : CommandInfo (prefix = b'\x00 \x00 \x00 \x97 ' ),
186
189
RoborockCommand .SET_APP_TIMEZONE : CommandInfo (prefix = b'\x00 \x00 \x97 ' ),
190
+ RoborockCommand .CHANGE_SOUND_VOLUME : CommandInfo (prefix = b'\x00 \x00 \x00 \x87 ' ),
191
+ RoborockCommand .GET_SOUND_PROGRESS : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
192
+ RoborockCommand .SET_SERVER_TIMER : CommandInfo (prefix = b'\x00 \x00 \x00 \xc7 ' ),
193
+ RoborockCommand .GET_ROOM_MAPPING : CommandInfo (prefix = b'\x00 \x00 \x00 w' ),
194
+ RoborockCommand .NAME_SEGMENT : CommandInfo (prefix = b'\x00 \x00 \x02 7' ),
195
+ RoborockCommand .SET_TIMEZONE : CommandInfo (prefix = b'\x00 \x00 \x00 \x97 ' )
187
196
# TODO discover prefix for following commands
188
197
# RoborockCommand.APP_GET_DRYER_SETTING: CommandInfo(prefix=b'\x00\x00\x00w'),
189
198
# RoborockCommand.APP_SET_DRYER_SETTING: CommandInfo(prefix=b'\x00\x00\x00w'),
@@ -194,9 +203,6 @@ class CommandInfo:
194
203
# RoborockCommand.GET_WASH_TOWEL_MODE: CommandInfo(prefix=b'\x00\x00\x00w'),
195
204
# RoborockCommand.SET_WASH_TOWEL_MODE: CommandInfo(prefix=b'\x00\x00\x00w'),
196
205
# RoborockCommand.START_WASH_THEN_CHARGE: CommandInfo(prefix=b'\x00\x00\x00w'),
197
- # RoborockCommand.GET_SOUND_PROGRESS: CommandInfo(prefix=b'\x00\x00\x00w'),
198
- # RoborockCommand.CHANGE_SOUND_VOLUME: CommandInfo(prefix=b'\x00\x00\x00w'),
199
- # RoborockCommand.SET_SERVER_TIMER: CommandInfo(prefix=b'\x00\x00\x00w'),
200
206
}
201
207
202
208
0 commit comments