Skip to content

Commit fe85dea

Browse files
committed
feat: add more commands and prefixes
1 parent 0db6b6d commit fe85dea

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

roborock/typing.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ class RoborockCommand(str, Enum):
106106
SWITCH_WATER_MARK = "switch_water_mark"
107107
SET_IDENTIFY_FURNITURE_STATUS = "set_identify_furniture_status"
108108
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"
109112

110113

111114
@dataclass
@@ -173,20 +176,23 @@ class CommandInfo:
173176
RoborockCommand.APP_RC_START: CommandInfo(prefix=b'\x00\x00\x00w'),
174177
RoborockCommand.APP_RC_END: CommandInfo(prefix=b'\x00\x00\x00w'),
175178
RoborockCommand.APP_RC_MOVE: CommandInfo(prefix=b'\x00\x00\x00w'),
176-
RoborockCommand.APP_GOTO_TARGET: CommandInfo(prefix=b'\x00\x00\x00w'),
177-
RoborockCommand.APP_SEGMENT_CLEAN: CommandInfo(prefix=b'\x00\x00\x00w'),
179+
RoborockCommand.APP_GOTO_TARGET: CommandInfo(prefix=b'\x00\x00\x00\x87'),
180+
RoborockCommand.APP_SEGMENT_CLEAN: CommandInfo(prefix=b'\x00\x00\x00\xc7'),
178181
RoborockCommand.APP_ZONED_CLEAN: CommandInfo(prefix=b'\x00\x00\x00w'),
179182
RoborockCommand.APP_START_WASH: CommandInfo(prefix=b'\x00\x00\x00w'),
180183
RoborockCommand.APP_STOP_WASH: CommandInfo(prefix=b'\x00\x00\x00w'),
181184
RoborockCommand.SET_FDS_ENDPOINT: CommandInfo(prefix=b'\x00\x00\x97'),
182185
RoborockCommand.ENABLE_LOG_UPLOAD: CommandInfo(prefix=b'\x00\x00\x87'),
183186
RoborockCommand.GET_SOUND_VOLUME: CommandInfo(prefix=b'\x00\x00\x00w'),
184187
RoborockCommand.TEST_SOUND_VOLUME: CommandInfo(prefix=b'\x00\x00\x00w'),
185-
RoborockCommand.UPD_SERVER_TIMER: CommandInfo(prefix=b'\x00\x00\x00w'),
188+
RoborockCommand.UPD_SERVER_TIMER: CommandInfo(prefix=b'\x00\x00\x00\x97'),
186189
RoborockCommand.SET_APP_TIMEZONE: CommandInfo(prefix=b'\x00\x00\x97'),
187190
RoborockCommand.CHANGE_SOUND_VOLUME: CommandInfo(prefix=b'\x00\x00\x00\x87'),
188191
RoborockCommand.GET_SOUND_PROGRESS: CommandInfo(prefix=b'\x00\x00\x00w'),
189192
RoborockCommand.SET_SERVER_TIMER: CommandInfo(prefix=b'\x00\x00\x00\xc7'),
193+
RoborockCommand.GET_ROOM_MAPPING: CommandInfo(prefix=b'\x00\x00\x00w'),
194+
RoborockCommand.NAME_SEGMENT: CommandInfo(prefix=b'\x00\x00\x027'),
195+
RoborockCommand.SET_TIMEZONE: CommandInfo(prefix=b'\x00\x00\x00\x97')
190196
# TODO discover prefix for following commands
191197
# RoborockCommand.APP_GET_DRYER_SETTING: CommandInfo(prefix=b'\x00\x00\x00w'),
192198
# RoborockCommand.APP_SET_DRYER_SETTING: CommandInfo(prefix=b'\x00\x00\x00w'),

0 commit comments

Comments
 (0)