Skip to content

Xiaomi MiIO Switch: Support for the Xiaomi Chuangmi Plug V3#13271

Merged
rytilahti merged 4 commits intohome-assistant:devfrom
syssi:feature/xiaomi-miio-switch-chuangmi-v3
Mar 30, 2018
Merged

Xiaomi MiIO Switch: Support for the Xiaomi Chuangmi Plug V3#13271
rytilahti merged 4 commits intohome-assistant:devfrom
syssi:feature/xiaomi-miio-switch-chuangmi-v3

Conversation

@syssi
Copy link
Copy Markdown
Member

@syssi syssi commented Mar 16, 2018

The Chuangmi V3 is very similar to the V1.

New features: The WiFi LED can be toggled and it reports the power consumption of the AC power outlet.

Copy link
Copy Markdown
Member

@rytilahti rytilahti Mar 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With python-miio maintainer hat on, should we try to merge PlugV1 and PlugV3 into one class (and allow specifying the type with an enum)?

edit: to add, otherwise this looks fairly straight-forward and good to me.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge both devices into one class! 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, great! This depends on rytilahti/python-miio#270 and a new version of python-miio then, I'll mark it as a WIP.

@rytilahti rytilahti changed the title Xiaomi MiIO Switch: Support for the Xiaomi Chuangmi Plug V3 WIP: Xiaomi MiIO Switch: Support for the Xiaomi Chuangmi Plug V3 Mar 18, 2018
@syssi
Copy link
Copy Markdown
Member Author

syssi commented Mar 28, 2018

I've merged all plugs into one class. The change is part of python-miio 0.3.9. I will rebase this PR as soon the version bump is merged.

@syssi syssi force-pushed the feature/xiaomi-miio-switch-chuangmi-v3 branch from 0e9d63c to a9178fb Compare March 29, 2018 05:59
@syssi syssi changed the title WIP: Xiaomi MiIO Switch: Support for the Xiaomi Chuangmi Plug V3 Xiaomi MiIO Switch: Support for the Xiaomi Chuangmi Plug V3 Mar 29, 2018
@rytilahti
Copy link
Copy Markdown
Member

rytilahti commented Mar 30, 2018

Looks good to me, tested to work with zimi.powerstrip.v2, thanks! 👍

@rytilahti rytilahti merged commit 9cfcd38 into home-assistant:dev Mar 30, 2018
@balloob balloob mentioned this pull request Apr 13, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants