Xiaomi Air Purifier Pro; how to connect to Domoticz

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
truffel
Posts: 3
Joined: Thursday 03 January 2019 4:40
Target OS: Windows
Domoticz version: 4.9700
Contact:

Xiaomi Air Purifier Pro; how to connect to Domoticz

Post by truffel »

Is anybody able to help in connecting a purifier Pro to my Domoticz setup? I would mainly like to see the history of the temperature and the humidity (and of course the settings of the purifier; on/off, fan speed etc). Later I will control it via Domoticz.

I’m using my current setup mainly to monitor the temperature in and out the house and control multiple air conditioners (via Harmony Hub) based on the temperature. (I’m a Dutch guy living in Dubai)
Currently I run Domoticz just on my windows laptop for the last 4 months. (I will buy a raspberry pi once I know everything will be running fine)

For my current setup all the hardware/devices where just added easily as they are available in the selection while adding new products to Domoticz. The purifier is not available, so how to add that?
(I’m not afraid to do some programming, but I don’t know where to start)

Thanks!
truffel
Posts: 3
Joined: Thursday 03 January 2019 4:40
Target OS: Windows
Domoticz version: 4.9700
Contact:

Re: Xiaomi Air Purifier Pro; how to connect to Domoticz

Post by truffel »

I managed to get the plugin of kofec working, so I did select the hardware in domoticz (With the token, retrieved via an older android mi home app).

I guess, the below link resolved the issue of adding devices to domoticz by commenting out # import miio.airpurifier:
https://www.domoticz.com/forum/viewtopi ... ec#p202478

Now i can add 3 devices, but they all give an error. What to do?
I also cannot see the temperature or humidity in domoticz yet.

2019-04-17 19:14:46.245 (XiaomiAir) onCommand called for Unit 10: Parameter 'On', Level: 0
2019-04-17 19:14:46.209 Status: User: Admin initiated a switch command (97/XiaomiAir - Power/On)
2019-04-17 19:14:46.248 Error: (XiaomiAir) 'onCommand' failed 'FileNotFoundError'.
2019-04-17 19:14:46.248 Error: (XiaomiAir) ----> Line 581 in C:\Program Files (x86)\Domoticz\plugins\domoticz-AirPurifier-master\plugin.py, function onCommand
2019-04-17 19:14:46.248 Error: (XiaomiAir) ----> Line 329 in C:\Program Files (x86)\Domoticz\plugins\domoticz-AirPurifier-master\plugin.py, function onCommand
2019-04-17 19:14:46.248 Error: (XiaomiAir) ----> Line 626 in C:\Program Files (x86)\Python35-32\Lib\subprocess.py, function check_output
2019-04-17 19:14:46.248 Error: (XiaomiAir) ----> Line 693 in C:\Program Files (x86)\Python35-32\Lib\subprocess.py, function run
2019-04-17 19:14:46.248 Error: (XiaomiAir) ----> Line 972 in C:\Program Files (x86)\Python35-32\Lib\subprocess.py, function __init__
2019-04-17 19:14:46.248 Error: (XiaomiAir) ----> Line 1239 in C:\Program Files (x86)\Python35-32\Lib\subprocess.py, function _execute_child
RohitIdrigasko
Posts: 2
Joined: Tuesday 28 May 2019 12:49
Target OS: -
Domoticz version:
Contact:

Re: Xiaomi Air Purifier Pro; how to connect to Domoticz

Post by RohitIdrigasko »

Nice Post Please Keep Posting Like This On Regular Basis. Here are some use full links.
Best Vegetable Purifier
Best Flour Mills In India
Nice Post Please Keep Posting Like This On Regular Basis.
Best Refrigerators In India
Best Double Door Refrigerators In India
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest