[Python plugin] Xiaomi Pedestrial Fan ZA4

Python and python framework

Moderator: leecollings

Post Reply
TheCondor
Posts: 78
Joined: Thursday 18 June 2015 10:32
Target OS: Linux
Domoticz version:
Contact:

[Python plugin] Xiaomi Pedestrial Fan ZA4

Post by TheCondor »

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.
TheCondor
Posts: 78
Joined: Thursday 18 June 2015 10:32
Target OS: Linux
Domoticz version:
Contact:

Re: [Python plugin] Xiaomi Pedestrial Fan ZA4

Post by TheCondor »

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.
Basssment
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

Post by Basssment »

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
TheCondor
Posts: 78
Joined: Thursday 18 June 2015 10:32
Target OS: Linux
Domoticz version:
Contact:

Re: [Python plugin] Xiaomi Pedestrial Fan ZA4

Post by TheCondor »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest