Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi Chuangmi Plug V3 support #10

Closed
cxlwill opened this issue Mar 8, 2018 · 9 comments
Closed

Xiaomi Chuangmi Plug V3 support #10

cxlwill opened this issue Mar 8, 2018 · 9 comments

Comments

@cxlwill
Copy link

cxlwill commented Mar 8, 2018

Yesterday Xiaomi just launched a new version of Smart Plug with 2-slot USB. No English page yet.
My friend got one and here's the feedback:

'get_power', []
'get_prop', ["on","usb_on","temperature","wifi_led"]
'set_power', ["off"]
'set_usb_on', []
'set_wifi_led', ['on']

chuangmi
I think basic logic is the same as first generation. HA component is under test.

@syssi
Copy link
Owner

syssi commented Mar 8, 2018

Could you provide the output of the "mirobo info" command? I would like to know the model name.

@syssi
Copy link
Owner

syssi commented Mar 8, 2018

The python-miio call looks like this:

self.send("miIO.info", [])

@cxlwill
Copy link
Author

cxlwill commented Mar 8, 2018

The model name is chuangmi.plug.v3. mirobo info output is:

['fw_ver']:'1.3.0_92'
['hw_ver']:'ESP8266'
['uid']:'25180012'
['model']:'chuangmi.plug.v3'
['wifi_fw_ver']:'1.5.0-dev(7f7a714)'

@syssi
Copy link
Owner

syssi commented Mar 8, 2018

Could you try to request these properties just for testing:

mirobo raw_command get_prop "['power', 'temperature', 'current', 'mode',  'power_consume_rate', 'wifi_led', 'power_price']"

@syssi
Copy link
Owner

syssi commented Mar 8, 2018

I've implemented a basic device support: rytilahti/python-miio#257

@syssi syssi changed the title Xiaomi Chuangmi Plug V2 support Xiaomi Chuangmi Plug V3 support Mar 8, 2018
@syssi
Copy link
Owner

syssi commented Mar 8, 2018

As far as python-miio 0.3.8 is released I will extend this component. Thanks for your support!

@cxlwill
Copy link
Author

cxlwill commented Mar 9, 2018

Output:

device.send('get_prop', ['power', 'temperature', 'current', 'mode', 'power_consume_rate', 'wifi_led', 'power_price'])
['on', 34, None, None, None, 'on', None]`

Thanks for miio and component update~~

@syssi syssi closed this as completed in e45578e Mar 13, 2018
@syssi
Copy link
Owner

syssi commented Mar 14, 2018

@cxlwill I would be happy if your friend could test the updated custom component! Thanks in advance!

@cxlwill
Copy link
Author

cxlwill commented Mar 16, 2018

Although you close this issue, here's the feedback: it works like a charm~ Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants