File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " python-roborock"
3
- version = " 0.1.9 "
3
+ version = " 0.1.10 "
4
4
description = " "
5
5
authors = [
" humbertogontijo <[email protected] >" ]
6
6
license = " GPL-3.0-only"
Original file line number Diff line number Diff line change @@ -100,9 +100,11 @@ async def list_devices(ctx):
100
100
click .echo (f"Known devices { ', ' .join ([device .name for device in home_data .devices + home_data .received_devices ])} " )
101
101
102
102
@click .command ()
103
+ @click .option ("--cmd" , required = True )
104
+ @click .option ("--params" , required = False )
103
105
@click .pass_context
104
106
@run_sync ()
105
- async def get_status (ctx ):
107
+ async def command (ctx , cmd , params ):
106
108
context : RoborockContext = ctx .obj
107
109
login_data = context .login_data ()
108
110
if not login_data .home_data :
@@ -121,14 +123,14 @@ async def get_status(ctx):
121
123
)
122
124
device_map [device .duid ] = RoborockDeviceInfo (device , product )
123
125
mqtt_client = RoborockMqttClient (login_data .user_data , device_map )
124
- await mqtt_client .get_status (home_data .devices [0 ].duid )
126
+ await mqtt_client .send_command (home_data .devices [0 ].duid , cmd , params )
125
127
mqtt_client .__del__ ()
126
128
127
129
128
130
cli .add_command (login )
129
131
cli .add_command (discover )
130
132
cli .add_command (list_devices )
131
- cli .add_command (get_status )
133
+ cli .add_command (command )
132
134
133
135
134
136
def main ():
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ class RoborockCommand(str, Enum):
25
25
APP_CHARGE = "app_charge" ,
26
26
APP_SPOT = "app_spot" ,
27
27
FIND_ME = "find_me" ,
28
+ RESUME_ZONED_CLEAN = "resume_zoned_clean" ,
29
+ RESUME_SEGMENT_CLEAN = "resume_segment_clean" ,
28
30
SET_CUSTOM_MODE = "set_custom_mode" ,
29
31
SET_MOP_MODE = "set_mop_mode" ,
30
32
SET_WATER_BOX_CUSTOM_MODE = "set_water_box_custom_mode" ,
You can’t perform that action at this time.
0 commit comments