「有奖活动」米家miot设备接入homeassistant系统的用法及支持设备信息收集

anlong大神写了一个牛逼的插件:

大佬的测试群在这里,通关密语看上面链接:

具体的使用方法anlong在hassbian论坛已经写了,这里不重复造车。

https://bbs.hassbian.com/thread-12007-1-1.html

一、说明:

  1. miot协议是指:通俗易懂的说就是目前控制米家各种wifi设备的协议,包括小米自己和使用小米芯片的硬件产品。
  2. anlong大神这个插件是把支持的硬件接入ha,使用非常方便。
  3. 因为anlong大神刚出这个插件,而米家的产品海量。有可能你目前使用的设备并不能支持。
  4. 我们希望做一件有意义的事情,请大家来测试这个插件,然后把您家已经能够接入的设备的名称型号等有用信息发到此贴,具体格式如下:
    萝卜的设备:1.小米xx晾衣架,京东或者淘宝购买链接xxxx,已经接入。

另外,如果不能接入,也请按照anlong在hassbian论坛的帖子,把相关信息,跟帖到hassbian对应帖子。
二、奖励政策:
1. 收集完成信息之后,3月1日为界限,从跟帖用户反馈相关信息的机友里面抽取两名用户,送homekit月球灯一个。

设备:1.邦先生晾衣架米家版型号:M50s,京东自营店,已经接入。

看起来真是让人激动。不着急,慢慢学。目前还看不懂怎么用

Mi Air Purifier 3 (zhimi.airpurifier.ma4) (#585)
Mi Air Purifier 3/3H (zhimi.airpurifier.mb3) (#585)
One meter intelligent curtain (090615.curtain.1mcu01)
PTX Rolling curtain (090615.curtain.jldj03)
Intelligent 86 socket(WIFI) (090615.plug.plus01)
Intelligent Mobile Plug (WIFI) (090615.plug.plus02)
Piak intelligent one switch (090615.switch.piak01)
Piak intelligent two switch (090615.switch.piak02)
Piak intelligent three switch (090615.switch.piak03)
Ai-Thinker Smart Socket (180.plug.plug0001)
Smart Curtain Motor (666.curtain.gt01)
Airmate mobile floor heating (air.heater.wda14)
Nnuodu Intelligent Living Room Lamp (app.light.wynd1)
Feipujia Intelligent lamps and lanterns (asdds.light.wyfpj1)
AUTORAIL Curtain Motor (babai.curtain.at5810)
MTX Smart Curtain (babai.curtain.mtx850)
Babuy Smart Curtain (babai.curtain.bb82mj)
NanHoo Smart Curtain (babai.curtain.nh5810)
WiFi Wall Switch A1 (babai.switch.bb101s)
WiFi Wall Switch A3 (babai.switch.bb103s)
Smart Curtain Motor (babai.curtain.190812)
WiFi Wall Switch A1 (babai.switch.bb101s)
WiFi Wall Switch A2 (babai.switch.bb102s)
WiFi Wall Switch A3 (babai.switch.bb103s)
LOMEDIQI Intelligent automatic air purifier (bjdm.airfresh.test01)
Qingfly smart portable clothes dryer (coc.dryer.fdpsm)
Heatcold Heat Pump Thermostat (cubee.airrtc.th125t)
Heatcold UFH Thermostat (cubee.airrtc.th123w)
Heatcold FCU thermostat (cubee.airrtc.th125a)
Heatcold Heating Thermostat (cubee.airrtc.th123e)
Gosund Smart Plug (cuco.plug.cp1)
Gosund Socket (cuco.plug.cp2)
Cuco Smart Plug (wifi) Basic (cuco.plug.wp5)
Muzi Intelligent Light (cxds.light.wymz01)
NIOYE Intelligent lamp (ddk.light.wy0a01)
Deye dehumidifier (deye.derh.u20a3)
Dimi RO water purifier 650G (dmaker.waterpuri.600g)
DooyaSmartCurtain (dooya.curtain.m1)
Xiaomi Mijia Vacuum-Mop 1C (dreame.vacuum.mc1808)
A300 Splendid Laser Projector (fengmi.projector.l166)
Mi Laser Projector (fengmi.projector.l185)
Peak meter projector Vogue (fengmi.projector.m135f)
Fantong Intelligent Lamp (ftds.light.wyft1)
Gomanni Scene two color ceiling lamp (gmn.light.wy0w01)
MiWhole Air Purifier Mix (hanyi.airpurifier.kj550)
Langli intelligent LED ceiling lamp (hcznjj.light.wyll01)
Smart electric blanket (hddz.blanket.zndrt)
Hadaman intelligent LED ceiling lamp (hdm.light.wy08a)
HUAYI HUIZUO ARIES For Bedroom (huayi.light.ari013)
HUAYI HUIZUO ARIES For Living Room (huayi.light.aries)
HUAYI HUIZUO Fan Light (huayi.light.fanwy)
HUAYI HUIZUO PEGASUS For Living Room (huayi.light.peg091)
HUAYI HUIZUO PEGASUS For Bedroom (huayi.light.peg093)
HUAYI HUIZUO PISCES For Bedroom (huayi.light.pis123)
HUAYI HUIZUO PISCES For Living Room (huayi.light.pisces)
HUAYI HUIZUO TAURUS For Bedroom (huayi.light.tau023)
HUAYI HUIZUO TAURUS For Living Room (huayi.light.taurus)
HUAYI HUIZUO VIRGO For Bedroom (huayi.light.vir063)
HUAYI HUIZUO VIRGO For Living Room (huayi.light.virgo)
HUAYI HUIZUO Ceiling Light (huayi.light.wy)
Lifan Nordic Intelligent Lamp (hyzm.light.wymy1)
Danfino Intelligent Roof Suction Lamp (jsc.light.wydfn1)
Scene Ble mesh light (jsc.light.wyls02)
Yantai Intelligent Lamp (jsc.light.wyyt01)
Xiangyu intelligent LED ceiling lamp (jxgc.light.wyxy1)
Jya Convection Heater (jya.heater.sha1)
NVC LED Smart Ceiling Lamp (leishi.light.eps112)
Scene Ble mesh light A (lejia.light.33301)
Scene mesh color temperature lamp C (lejia.light.wy02)
Scene Color Light WIFI X (lemesh.light.wy)
Scene mesh color temperature lamp (lemesh.light.wy0c02)
Scene mesh color temperature lamp D (lemesh.light.wy0c03)
Scene mesh breaker (lemesh.switch.sw0a01)
Scene Curtain WIFI X (leshi.curtain.v0001)
Smart Switch WIFI X (leshi.switch.v0001)
Switch Breaker WIFI X (leshi.switch.v002)
Linptech Smart Wall Switch(1 Key) (linp.switch.q31)
Linptech Smart Wall Switch(2 Keys) (linp.switch.q32)
Linptech Smart Wall Switch(3 Keys) (linp.switch.q33)
Shengxin Intelligent lamp (lsds.light.wy0a01)
Lige lighting (ltdzsw.light.wylg1)
Xiaomiyoupin Curtain Controller (Wi-Fi) (lumi.curtain.hagl05)
Mi Smart Home Hub (lumi.gateway.mgl03)
Mi Light Detection Sensor (lumi.sen_ill.mgl01)
Aqara Smart Smoke Detector(NB-IoT) (lumi.sensor_smoke.acn01)
Smart Low Voltage Blanket Double (miaomiaoce.blanket.d02)
Smart Low Voltage Blanket Single (miaomiaoce.blanket.s02)
Cat and dog water fountain (mmgg.pet_waterer.s1)
MR.BOND (mrbond.airer.m2)
MR.BOND (mrbond.airer.m2pro)
MR.BOND Smart Curtain (mrbond.curtain.rac03)
NEW WIDETECH Internet Dehumidifier 12L (nwt.derh.312en)
NWT Internet Dehumidifier 30L (nwt.derh.330ef)
Ougenuo Intelligent lamp (ougn.light.wy0a01)
Zhirui Ceiling Lamp Nordic 40W (philips.light.mceilm)
Zhirui Ceiling Lamp Nordic 28W (philips.light.mceils)
Zhirui Ceiling Lamp Nordic 80W (philips.light.mceil)
Puzhuoer Smart Light (pze.light.wy0a01)
8H Milan smart electric bed (qushui.bed.001)
RBE wisdow living room lamp (rbe.light.wy0a01)
M-YF6002A Smart Bathroom Heater (roome.bhf_light.yf6004)
Petoneer AirMaster (skyrc.airpurifier.pur)
Chanitex Water-heated mattress CXM-A1 (smith.blanket.cxma1)
Shengteng Lighting Ceiling Light (stds.light.wyst01)
Shengteng Ceiling Light (stds.light.wyst02)
Bijia Fresh Air Ventilator (szdy.airfresh.n80)
DanceLight I wisdom kanLamp (tsd.light.tsl001)
Viomi Smart Bath Heater PRO (viomi.bhf_light.v3)
Viomi Smart IH Rice Cooker 3L (viomi.cooker.v4)
Viomi Kick-Line heater Pro (viomi.heater.vxtj01)
WinTom Curtain (wintom.curtain.230xm)
Ocooker hood (xckj.hood.z9001)
Ocooker french refrigerator with four doors (xckj.fridge.448ws4)
Ocooker dishwasher (xckj.dishwasher.idw01)
Ocooker smart refrigerator for kitchen (xckj.fridge.151wg1)
Romne Intelligent lamp (xgds.light.wy0a01)
Mi Smart Air Conditioner A (1HP / Inverter / China Energy Label Level 1) (xiaomi.aircondition.mc1)
Mi Smart Air Conditioner A (1.5HP / Inverter / China Energy Label Level 1) (xiaomi.aircondition.mc2)
Mi Smart Air Conditioner A (1HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc4)
Mi Smart Air Conditioner A (1.5HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc5)
Mi Smart Vertical Air Conditioner A (2HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc6)
Mi Smart Vertical Air Conditioner A (3HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc7)
Letsleep one click smart aqua-heat mattress (xinyue.blanket.n1918)
Xi Zhi Xi Intelligent Lamp (xzx.light.wyxzx1)
Yeelight Smart Curtain Controller (yeelink.curtain.ctmt1)
Yeelight Mesh LED Downlight (yeelink.light.dnlight2)
Yeelight Smart Ceiling Fan (yeelink.light.fancl1)
Yeelight Mesh LED Bulb (yeelink.light.meshbulb1)
Yeelight Mesh LED Bulb (yeelink.light.meshbulb2)
Yeelight Mesh LED Spotlight (yeelink.light.spot1)
Mi Smart Bluetooth Mesh LED Downlight (yeelink.light.light3)
Mi Smart Bluetooth Mesh LED Bulb (yeelink.light.mbulb3)
Feihong lighting (yhzm.light.wyfh01)
Leiyuan Intelligent Living Room Lamp (ylzm.light.wyly01)
EMG Top halo ceiling lamp (ymj.light.wyymj1)
Mi Air Purifier Pro H (zhimi.airpurifier.va1)
Mi Smart Space Heater S (zhimi.heater.ma2)
Smartmi Smart Fan (zhimi.heater.na1)
Smartmi Smart Convector Heater 1S (zhimi.heater.za2)
Smartmi Smart Convector Heater 1S (zhimi.heater.zb1)
Smartmi Evaporative Humidifier 2 (zhimi.humidifier.ca4)
ZSZM Intelligent ceiling lamp (zszm.light.wy0a03)
One meter intelligent curtain (090615.curtain.1mcu01)
PTX Rolling curtain (090615.curtain.jldj03)
Intelligent 86 socket(WIFI) (090615.plug.plus01)
Intelligent Mobile Plug (WIFI) (090615.plug.plus02)
Piak intelligent one switch (090615.switch.piak01)
Piak intelligent two switch (090615.switch.piak02)
Piak intelligent three switch (090615.switch.piak03)
Ai-Thinker Smart Socket (180.plug.plug0001)
Smart Curtain Motor (666.curtain.gt01)
Airmate mobile floor heating (air.heater.wda14)
Nnuodu Intelligent Living Room Lamp (app.light.wynd1)
Feipujia Intelligent lamps and lanterns (asdds.light.wyfpj1)
AUTORAIL Curtain Motor (babai.curtain.at5810)
MTX Smart Curtain (babai.curtain.mtx850)
Babuy Smart Curtain (babai.curtain.bb82mj)
NanHoo Smart Curtain (babai.curtain.nh5810)
WiFi Wall Switch A1 (babai.switch.bb101s)
WiFi Wall Switch A3 (babai.switch.bb103s)
Smart Curtain Motor (babai.curtain.190812)
WiFi Wall Switch A1 (babai.switch.bb101s)
WiFi Wall Switch A2 (babai.switch.bb102s)
WiFi Wall Switch A3 (babai.switch.bb103s)
LOMEDIQI Intelligent automatic air purifier (bjdm.airfresh.test01)
Qingfly smart portable clothes dryer (coc.dryer.fdpsm)
Heatcold Heat Pump Thermostat (cubee.airrtc.th125t)
Heatcold UFH Thermostat (cubee.airrtc.th123w)
Heatcold FCU thermostat (cubee.airrtc.th125a)
Heatcold Heating Thermostat (cubee.airrtc.th123e)
Gosund Smart Plug (cuco.plug.cp1)
Gosund Socket (cuco.plug.cp2)
Cuco Smart Plug (wifi) Basic (cuco.plug.wp5)
Muzi Intelligent Light (cxds.light.wymz01)
NIOYE Intelligent lamp (ddk.light.wy0a01)
Deye dehumidifier (deye.derh.u20a3)
Dimi RO water purifier 650G (dmaker.waterpuri.600g)
DooyaSmartCurtain (dooya.curtain.m1)
Xiaomi Mijia Vacuum-Mop 1C (dreame.vacuum.mc1808)
A300 Splendid Laser Projector (fengmi.projector.l166)
Mi Laser Projector (fengmi.projector.l185)
Peak meter projector Vogue (fengmi.projector.m135f)
Fantong Intelligent Lamp (ftds.light.wyft1)
Gomanni Scene two color ceiling lamp (gmn.light.wy0w01)
MiWhole Air Purifier Mix (hanyi.airpurifier.kj550)
Langli intelligent LED ceiling lamp (hcznjj.light.wyll01)
Smart electric blanket (hddz.blanket.zndrt)
Hadaman intelligent LED ceiling lamp (hdm.light.wy08a)
HUAYI HUIZUO ARIES For Bedroom (huayi.light.ari013)
HUAYI HUIZUO ARIES For Living Room (huayi.light.aries)
HUAYI HUIZUO Fan Light (huayi.light.fanwy)
HUAYI HUIZUO PEGASUS For Living Room (huayi.light.peg091)
HUAYI HUIZUO PEGASUS For Bedroom (huayi.light.peg093)
HUAYI HUIZUO PISCES For Bedroom (huayi.light.pis123)
HUAYI HUIZUO PISCES For Living Room (huayi.light.pisces)
HUAYI HUIZUO TAURUS For Bedroom (huayi.light.tau023)
HUAYI HUIZUO TAURUS For Living Room (huayi.light.taurus)
HUAYI HUIZUO VIRGO For Bedroom (huayi.light.vir063)
HUAYI HUIZUO VIRGO For Living Room (huayi.light.virgo)
HUAYI HUIZUO Ceiling Light (huayi.light.wy)
Lifan Nordic Intelligent Lamp (hyzm.light.wymy1)
Danfino Intelligent Roof Suction Lamp (jsc.light.wydfn1)
Scene Ble mesh light (jsc.light.wyls02)
Yantai Intelligent Lamp (jsc.light.wyyt01)
Xiangyu intelligent LED ceiling lamp (jxgc.light.wyxy1)
Jya Convection Heater (jya.heater.sha1)
NVC LED Smart Ceiling Lamp (leishi.light.eps112)
Scene Ble mesh light A (lejia.light.33301)
Scene mesh color temperature lamp C (lejia.light.wy02)
Scene Color Light WIFI X (lemesh.light.wy)
Scene mesh color temperature lamp (lemesh.light.wy0c02)
Scene mesh color temperature lamp D (lemesh.light.wy0c03)
Scene mesh breaker (lemesh.switch.sw0a01)
Scene Curtain WIFI X (leshi.curtain.v0001)
Smart Switch WIFI X (leshi.switch.v0001)
Switch Breaker WIFI X (leshi.switch.v002)
Linptech Smart Wall Switch(1 Key) (linp.switch.q31)
Linptech Smart Wall Switch(2 Keys) (linp.switch.q32)
Linptech Smart Wall Switch(3 Keys) (linp.switch.q33)
Shengxin Intelligent lamp (lsds.light.wy0a01)
Lige lighting (ltdzsw.light.wylg1)
Xiaomiyoupin Curtain Controller (Wi-Fi) (lumi.curtain.hagl05)
Mi Smart Home Hub (lumi.gateway.mgl03)
Mi Light Detection Sensor (lumi.sen_ill.mgl01)
Aqara Smart Smoke Detector(NB-IoT) (lumi.sensor_smoke.acn01)
Smart Low Voltage Blanket Double (miaomiaoce.blanket.d02)
Smart Low Voltage Blanket Single (miaomiaoce.blanket.s02)
Cat and dog water fountain (mmgg.pet_waterer.s1)
MR.BOND (mrbond.airer.m2)
MR.BOND (mrbond.airer.m2pro)
MR.BOND Smart Curtain (mrbond.curtain.rac03)
NEW WIDETECH Internet Dehumidifier 12L (nwt.derh.312en)
NWT Internet Dehumidifier 30L (nwt.derh.330ef)
Ougenuo Intelligent lamp (ougn.light.wy0a01)
Zhirui Ceiling Lamp Nordic 40W (philips.light.mceilm)
Zhirui Ceiling Lamp Nordic 28W (philips.light.mceils)
Zhirui Ceiling Lamp Nordic 80W (philips.light.mceil)
Puzhuoer Smart Light (pze.light.wy0a01)
8H Milan smart electric bed (qushui.bed.001)
RBE wisdow living room lamp (rbe.light.wy0a01)
M-YF6002A Smart Bathroom Heater (roome.bhf_light.yf6004)
Petoneer AirMaster (skyrc.airpurifier.pur)
Chanitex Water-heated mattress CXM-A1 (smith.blanket.cxma1)
Shengteng Lighting Ceiling Light (stds.light.wyst01)
Shengteng Ceiling Light (stds.light.wyst02)
Bijia Fresh Air Ventilator (szdy.airfresh.n80)
DanceLight I wisdom kanLamp (tsd.light.tsl001)
Viomi Smart Bath Heater PRO (viomi.bhf_light.v3)
Viomi Smart IH Rice Cooker 3L (viomi.cooker.v4)
Viomi Kick-Line heater Pro (viomi.heater.vxtj01)
WinTom Curtain (wintom.curtain.230xm)
Ocooker hood (xckj.hood.z9001)
Ocooker french refrigerator with four doors (xckj.fridge.448ws4)
Ocooker dishwasher (xckj.dishwasher.idw01)
Ocooker smart refrigerator for kitchen (xckj.fridge.151wg1)
Romne Intelligent lamp (xgds.light.wy0a01)
Mi Smart Air Conditioner A (1HP / Inverter / China Energy Label Level 1) (xiaomi.aircondition.mc1)
Mi Smart Air Conditioner A (1.5HP / Inverter / China Energy Label Level 1) (xiaomi.aircondition.mc2)
Mi Smart Air Conditioner A (1HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc4)
Mi Smart Air Conditioner A (1.5HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc5)
Mi Smart Vertical Air Conditioner A (2HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc6)
Mi Smart Vertical Air Conditioner A (3HP / Inverter / China Energy Label Level <1) (xiaomi.aircondition.mc7)
Letsleep one click smart aqua-heat mattress (xinyue.blanket.n1918)
Xi Zhi Xi Intelligent Lamp (xzx.light.wyxzx1)
Yeelight Smart Curtain Controller (yeelink.curtain.ctmt1)
Yeelight Mesh LED Downlight (yeelink.light.dnlight2)
Yeelight Smart Ceiling Fan (yeelink.light.fancl1)
Yeelight Mesh LED Bulb (yeelink.light.meshbulb1)
Yeelight Mesh LED Bulb (yeelink.light.meshbulb2)
Yeelight Mesh LED Spotlight (yeelink.light.spot1)
Mi Smart Bluetooth Mesh LED Downlight (yeelink.light.light3)
Mi Smart Bluetooth Mesh LED Bulb (yeelink.light.mbulb3)
Feihong lighting (yhzm.light.wyfh01)
Leiyuan Intelligent Living Room Lamp (ylzm.light.wyly01)
EMG Top halo ceiling lamp (ymj.light.wyymj1)
Mi Air Purifier 3 (zhimi.airpurifier.ma4)
Mi Air Purifier 3/3H (zhimi.airpurifier.mb3)
Mi Air Purifier Pro H (zhimi.airpurifier.va1)
Mi Smart Space Heater S (zhimi.heater.ma2)
Smartmi Smart Fan (zhimi.heater.na1)
Smartmi Smart Convector Heater 1S (zhimi.heater.za2)
Smartmi Smart Convector Heater 1S (zhimi.heater.zb1)
Smartmi Evaporative Humidifier 2 (zhimi.humidifier.ca4)
ZSZM Intelligent ceiling lamp (zszm.light.wy0a03)

太多了,自己去https://github.com/rytilahti/python-miio/issues/627 看吧,应该都是支持miot的。

这些鬼英文型号,不知道如何确定是啥啊

1 个赞

我粗略的查了一下,发现好像我所有未接入HA的米家产品都不是MIoT的?汗。
尝试过N多设备,都不支持,但是提供了所有log文件,是否也能参加评比呢?哈哈。
我想要个homekit 月球灯。。。哈哈哈哈

  1. Yeelight 皓白3030 LED面板灯
    京东购买链接:https://item.jd.com/100009281736.html#crumb-wrap
    Model: yeelink.light.panel1

Jeremy@Jeremys-MBP ~ % miiocli -d device --ip 192.168.1.101 --token 9f04bfxxxxxxx6228d3 raw_command get_properties “[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]”
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b’’
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x13\xf9\xfc\xf1\x00\x0en\x00’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify(‘13f9fcf1’)
ts = 1970-01-11 22:41:04
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
DEBUG:miio.miioprotocol:Discovered 13f9fcf1 with ts: 1970-01-11 22:41:04, token: b’ffffffffffffffffffffffffffffffff’
DEBUG:miio.miioprotocol:192.168.1.101:54321 >>: {‘id’: 1, ‘method’: ‘get_properties’, ‘params’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]}
DEBUG:miio.miioprotocol:192.168.1.101:54321 (ts: 1970-01-11 22:41:08, id: 1) << {‘id’: 1, ‘error’: {‘code’: -9999, ‘message’: ‘user ack timeout’}}
DEBUG:miio.click_common:Exception: {‘code’: -9999, ‘message’: ‘user ack timeout’}
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 59, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 280, in wrap
kwargs[“result”] = func(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/decorators.py”, line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 245, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 193, in call
return method(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 162, in raw_command
return self.send(command, parameters)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 143, in send
return self._protocol.send(
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 213, in send
self._handle_error(payload[“error”])
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 273, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {‘code’: -9999, ‘message’: ‘user ack timeout’}
Error: {‘code’: -9999, ‘message’: ‘user ack timeout’}

  1. Yeelight 凉霸
    京东购买链接:https://item.jd.com/100009281736.html#crumb-wrap
    Model: yeelink.ven_fan.vf1

jeremy@Jeremys-MBP ~ % miiocli -d device --ip 192.168.1.141 --token 07bexxxxxxxxxxxxx06f9a raw_command get_properties “[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]”
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b’’
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x12\xae\xb52\x00\x05tF’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify(‘12aeb532’)
ts = 1970-01-05 03:17:26
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
DEBUG:miio.miioprotocol:Discovered 12aeb532 with ts: 1970-01-05 03:17:26, token: b’ffffffffffffffffffffffffffffffff’
DEBUG:miio.miioprotocol:192.168.1.141:54321 >>: {‘id’: 1, ‘method’: ‘get_properties’, ‘params’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]}
DEBUG:miio.miioprotocol:192.168.1.141:54321 (ts: 1970-01-05 03:17:30, id: 1) << {‘id’: 1, ‘error’: {‘code’: -9999, ‘message’: ‘user ack timeout’}, ‘exe_time’: 4020}
DEBUG:miio.click_common:Exception: {‘code’: -9999, ‘message’: ‘user ack timeout’}
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 59, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 280, in wrap
kwargs[“result”] = func(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/decorators.py”, line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 245, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 193, in call
return method(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 162, in raw_command
return self.send(command, parameters)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 143, in send
return self._protocol.send(
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 213, in send
self._handle_error(payload[“error”])
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 273, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {‘code’: -9999, ‘message’: ‘user ack timeout’}
Error: {‘code’: -9999, ‘message’: ‘user ack timeout’}

3.Name: Aqara晾衣架
Model: lumi.airer.acn01
京东link: https://item.jd.com/49751266327.html

jeremy@Jeremys-MBP ~ % miiocli -d device --ip 192.168.1.231 --token a95dxxxxxxxxxxxxx55572 raw_command get_properties “[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]”
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b’’
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x06\xfa9=\x00\x0eq\x97’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify(‘06fa393d’)
ts = 1970-01-11 22:56:23
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
DEBUG:miio.miioprotocol:Discovered 06fa393d with ts: 1970-01-11 22:56:23, token: b’ffffffffffffffffffffffffffffffff’
DEBUG:miio.miioprotocol:192.168.1.231:54321 >>: {‘id’: 1, ‘method’: ‘get_properties’, ‘params’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]}
DEBUG:miio.miioprotocol:192.168.1.231:54321 (ts: 1970-01-11 22:56:27, id: 1) << {‘id’: 1, ‘error’: {‘code’: -9999, ‘message’: ‘user ack timeout’}}
DEBUG:miio.click_common:Exception: {‘code’: -9999, ‘message’: ‘user ack timeout’}
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 59, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 280, in wrap
kwargs[“result”] = func(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/decorators.py”, line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 245, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 193, in call
return method(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 162, in raw_command
return self.send(command, parameters)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 143, in send
return self._protocol.send(
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 213, in send
self._handle_error(payload[“error”])
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 273, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {‘code’: -9999, ‘message’: ‘user ack timeout’}
Error: {‘code’: -9999, ‘message’: ‘user ack timeout’}

  1. Name: Yeelight 烁影直流风扇灯
    Model: yeelink.light.fancl2
    京东Link:https://item.jd.com/71184611990.html

jeremy@Jeremys-MBP ~ % miiocli -d device --ip 192.168.1.247 --token 15exxxxxxxxxxxxxxxxxxe85 raw_command get_properties “[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]”
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b’’
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x13\xe5\x91P\x00\x04\xdd)’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify(‘13e59150’)
ts = 1970-01-04 16:32:41
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
DEBUG:miio.miioprotocol:Discovered 13e59150 with ts: 1970-01-04 16:32:41, token: b’ffffffffffffffffffffffffffffffff’
DEBUG:miio.miioprotocol:192.168.1.247:54321 >>: {‘id’: 1, ‘method’: ‘get_properties’, ‘params’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]}
DEBUG:miio.miioprotocol:192.168.1.247:54321 (ts: 1970-01-04 16:32:41, id: 1) << {‘id’: 1, ‘result’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1, ‘code’: 0, ‘value’: False}], ‘exe_time’: 230}
[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1, ‘code’: 0, ‘value’: False}]

5.Name: 云米4L YM-R4001A 饮水机
Model: yunmi.kettle.r3
京东购买link:https://item.jd.com/7937908.html

jeremy@Jeremys-MBP ~ % miiocli -d device --ip 192.168.1.118 --token cff1xxxxxxxxxxxxxxxxbb9 raw_command get_properties “[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]”
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b’’
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\r\xfd\x8el\x00\x05w\x90’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify(‘0dfd8e6c’)
ts = 1970-01-05 03:31:28
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
DEBUG:miio.miioprotocol:Discovered 0dfd8e6c with ts: 1970-01-05 03:31:28, token: b’ffffffffffffffffffffffffffffffff’
DEBUG:miio.miioprotocol:192.168.1.118:54321 >>: {‘id’: 1, ‘method’: ‘get_properties’, ‘params’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]}
DEBUG:miio.miioprotocol:192.168.1.118:54321 (ts: 1970-01-05 03:31:28, id: 1) << {‘id’: 1, ‘result’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1, ‘code’: -4004}], ‘exe_time’: 150}
[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1, ‘code’: -4004}]

5.Name: Yeelight阅读灯凯叔讲故事版
Model: yeelink.light.lamp5
京东link:https://item.jd.com/44690256656.html#crumb-wrap
jeremy@Jeremys-MBP ~ % miiocli -d device --ip 192.168.1.230 --token 8a1xxxxxxxxxxxxxxxxxxxxx250d raw_command get_properties “[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]”
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b’’
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x073\xcf}\x00\x00\xad\xa6’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify(‘0733cf7d’)
ts = 1970-01-01 12:20:54
offset1 = 0
offset2 = 16
length = 16
checksum = b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’ (total 16)
DEBUG:miio.miioprotocol:Discovered 0733cf7d with ts: 1970-01-01 12:20:54, token: b’00000000000000000000000000000000’
DEBUG:miio.miioprotocol:192.168.1.230:54321 >>: {‘id’: 1, ‘method’: ‘get_properties’, ‘params’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]}
DEBUG:miio.miioprotocol:192.168.1.230:54321 (ts: 1970-01-01 12:20:54, id: 1) << {‘error’: {‘code’: -10000, ‘message’: ‘Method not found.’}, ‘id’: 1}
DEBUG:miio.click_common:Exception: {‘code’: -10000, ‘message’: ‘Method not found.’}
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 59, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 280, in wrap
kwargs[“result”] = func(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/decorators.py”, line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 245, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/click_common.py”, line 193, in call
return method(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 162, in raw_command
return self.send(command, parameters)
File “/usr/local/lib/python3.9/site-packages/miio/device.py”, line 143, in send
return self._protocol.send(
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 213, in send
self._handle_error(payload[“error”])
File “/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py”, line 273, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {‘code’: -10000, ‘message’: ‘Method not found.’}
Error: {‘code’: -10000, ‘message’: ‘Method not found.’}

6.Name: 米家飞利浦护眼灯
Model: philips.light.rwread
京东Link: https://item.jd.com/100007255308.html

jeremy@Jeremys-MBP ~ % miiocli -d device --ip 192.168.1.248 --token ac7axxxxxxxxxxxxxxxx77ffc raw_command get_properties “[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]”
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b’’
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x0e\xa6\xfb\xce\x00\x01\xdc\x1a’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify(‘0ea6fbce’)
ts = 1970-01-02 09:51:22
offset1 = 0
offset2 = 16
length = 16
checksum = b’\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff’ (total 16)
DEBUG:miio.miioprotocol:Discovered 0ea6fbce with ts: 1970-01-02 09:51:22, token: b’ffffffffffffffffffffffffffffffff’
DEBUG:miio.miioprotocol:192.168.1.248:54321 >>: {‘id’: 1, ‘method’: ‘get_properties’, ‘params’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1}]}
DEBUG:miio.miioprotocol:192.168.1.248:54321 (ts: 1970-01-02 09:51:22, id: 1) << {‘id’: 1, ‘result’: [{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1, ‘code’: -4004}], ‘exe_time’: 240}
[{‘did’: ‘result’, ‘siid’: 2, ‘piid’: 1, ‘code’: -4004}]

尝试了下,yeelight的浴霸pro,可以接入
手上一个2年前的小米空气检测仪,可能由于比较老了,接入失败
另外楼上的yeelight面板灯,可以通过自带的那个yeelight集成接入

MOMO的设备:1.云米空调,京东购买链接: https://item.m.jd.com/product/100013080634.html 已经接入 model: viomi.aircondition.y7
2.云米立式空调,京东购买链接:https://item.m.jd.com/product/100007142997.html 已经接入 model: viomi.aircondition.y3
3.雷士吸顶灯 京东购买链接 : https://item.m.jd.com/product/51154196741.html 套装中大灯支持接入 model: leishi.light.wy0c01