Hi, i started working on a plugin for interact with the xiaomi fan, model ZA4 (currently avaiable).
Here the github page, is WIP and is based on the awesome work done by "mnir" for the xiaomi vacuum.
https://github.com/Condorello/Domoticz-Xiaomi-Fan-ZA4
Currently i successfully retrive the status of the fan (on-off), can set the rotating angle and the fan speed plus retrive the status of the same parameters. I've just some trouble to change the rotating angle device states when it's off but i expect to fix that soon.
Step after is to manage the direct and natural fan parameter, this is not so simple because the API does't provides a simple toggle command.
[Python plugin] Xiaomi Pedestrial Fan ZA4
Moderator: leecollings
Re: [Python plugin] Xiaomi Pedestrial Fan ZA4
Update: plugin is now fully working with toggle of natural/direct mode, fan speed and current status retrive.
There's just few graphical customizations to do (icons etc) and a bit cleaning of the code but is working, and this is a good starting point for add support for other device such air purifield and similar.
P.S. Battery is not provided by the device so is not possible to obtain that value in any way.
There's just few graphical customizations to do (icons etc) and a bit cleaning of the code but is working, and this is a good starting point for add support for other device such air purifield and similar.
P.S. Battery is not provided by the device so is not possible to obtain that value in any way.
-
- Posts: 38
- Joined: Thursday 18 October 2018 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: netherlands, Kuuk
- Contact:
Re: [Python plugin] Xiaomi Pedestrial Fan ZA4
Hi,
Do you think this plugin will also work with the xiaomi Mi Smart Standing Fan 1C?
I have this and found some scripts which made me connect to it but not send commands and adding it to domoticz.
B
Do you think this plugin will also work with the xiaomi Mi Smart Standing Fan 1C?
I have this and found some scripts which made me connect to it but not send commands and adding it to domoticz.
B
Re: [Python plugin] Xiaomi Pedestrial Fan ZA4
Keep an eye here
https://github.com/rytilahti/python-miio
Seems to be not supported now, but when they Will implement api It Will be simple to adapt my script
https://github.com/rytilahti/python-miio
Seems to be not supported now, but when they Will implement api It Will be simple to adapt my script
Who is online
Users browsing this forum: No registered users and 0 guests