rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.77k stars 563 forks source link

Support for lumi.acpartner.v3 #530

Open chenquanhao opened 5 years ago

chenquanhao commented 5 years ago

Hello, is it possible to add support for the lumi.acpartner.v3?

Log Details (ERROR) Tue Jul 16 2019 18:12:06 GMT+0800 (中国标准时间) Unsupported device found! Please create an issue at https://github.com/rytilahti/python-miio/issues and provide the following data: lumi.acpartner.v3

rytilahti commented 5 years ago

How old version of python-miio are you using? #313 added support to it over a year ago (to my understanding).

chenquanhao commented 5 years ago

I think so, but there is no lumi. acpartner. V3 support mode on the page. Https://www.home-assistant.io/components/switch.xiaomi_miio/ Model (string) (Optional) The model of your miio device. Valid values are chuangmi.plug.v1',qmi.powerstrip.v1', zimi.powerstrip.v2',chuangmi.plug.m1', chuangmi.plug.m3',chuangmi.plug.plug.v2', `chuangmi.plug.v3 and `chuangmi.plug plug 205'. This device can be set up to detect Nd is recommended if your device is not't always available.

chenquanhao commented 5 years ago

I'm going to add a switch to lumi. acpartner. V3.

chenquanhao commented 5 years ago

HA0.80.3 Thu Jul 18 2019 08:52:19 GMT+0800 (中国标准时间) Invalid config for [switch.xiaomi_miio]: value is not allowed for dictionary value @ data['model']. Got 'lumi.acpartner.v3'. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.xiaomi_miio/

rytilahti commented 5 years ago

That's a warning coming from homeassistant. Is the device working correctly with miiocli tool? If yes, this should be reported to homeassistant.