aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.87k stars 354 forks source link

Xiaomi Walkingpad #304

Open kaukas opened 3 years ago

kaukas commented 3 years ago
Device ID: 3153…
Model info: ksmb.walkingpad.v1
Address: 192.168.1.1
Token: <… token …> via auto-token
Support: At least generic

Type info: miio
Capabilities:

Firmware version: 1.6.7
Hardware version: MTK7697
MCU firmware version: 0057

WiFi:  (00:00:00:00:00:00) RSSI: 0
WiFi firmware version: 20190313111057

Remote access (Mi Home App): Maybe

Accidentally discovered that you can get speed with

$ miio protocol call 192.168.1.1 get_prop '["speed"]' --token <token>
INFO  Got result:
[
  4
]

and set speed via

miio protocol call <ip> set_speed '[3]' --token <token>

Another supported property seems to be mode: get_prop ["mode"] and set_mode [1]. 0 is automatic, 1 is manual, 2 is standby.

kaukas commented 3 years ago

Found that you can get all props:

$ miio protocol call <ip> get_prop '["all"]' --token <token>
[
  "mode:1",
  "time:171",
  "sp:4.0",
  "dist:180",
  "cal:11630",
  "step:271"
]