ctrysbita / miio.dart

Dart implementation for MIIO LAN protocol.
GNU General Public License v3.0
9 stars 3 forks source link

Method not found. #4

Closed zuozhehao closed 2 years ago

zuozhehao commented 2 years ago

my device https://home.miot-spec.com/spec/lumi.acpartner.v3

➜  ./miio device --ip=192.x.x.x --token=xxxxxxxx property -s 2 -p 1
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ 14:21:35.120 (+0:00:00.644419)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 💡 Setting service 2 property 1 of device 259135139 to true.
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ 14:21:35.127 (+0:00:00.651541)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ ⛔ Command failed with error from device:
│ ⛔ code: -32601
│ ⛔ message: Method not found.
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
ctrysbita commented 2 years ago

Make sure your device support MIoT Spec Control. Or you have to use legacy prop api.