DomoticzXiaomiPlugins Xiaomi Mi Air Purifier 2H no action possible

Python and python framework

Moderator: leecollings

Post Reply
ProjektC
Posts: 67
Joined: Sunday 17 December 2017 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

DomoticzXiaomiPlugins Xiaomi Mi Air Purifier 2H no action possible

Post by ProjektC »

I use the plugin
DomoticzXiaomiPlugins

MiioAirPurifierMiot
Xiaomi Mi Air Purifier 3H
With it I can completely control my fan and everything works.

Now I still have a Purifier 2H and I want to control it.
According to the list I would have to choose this
MiioAirPurifier
Xiaomi Mi Air Purifier

I enter the IP address and the token and the device is found.
It also shows me everything the plug can read.
But I can't change anything active.
There are always errors.
Spoiler: show

Code: Select all

 2020-10-04 11:16:57.728 Error: (Air purifier bedroom) 'onCommand' failed 'TypeError':'MapEnumLevelToMethodParam() missing 1 required positional argument: 'level'''.
2020-10-04 11:16:57.728 Error: (Air purifier bedroom) ----> Line 855 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function onCommand
2020-10-04 11:16:57.728 Error: (air purifier bedroom) ----> Line 786 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function onCommand
2020-10-04 11:16:59.982 (air purifier bedroom) Calling heartbeat handler update status.
2020-10-04 11:17:03.936 Status: User: admin initiated a switch command (896/air purifier bedroom mode/set level)
2020-10-04 11:17:03.985 Error: (Air purifier bedroom) 'onCommand' failed 'TypeError':'MapEnumLevelToMethodParam() missing 1 required positional argument: 'level'''.
2020-10-04 11:17:03.985 Error: (Air purifier bedroom) ----> Line 855 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function onCommand
2020-10-04 11:17:03.985 Error: (air purifier bedroom) ----> Line 786 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function onCommand
2020-10-04 11:17:15.007 (Air purifier bedroom) Skip heartbeat handler bacause stage not enough 1/2.
2020-10-04 11:17:16.510 (Air purifier living room) Skip heartbeat handler because stage not enough 3/5.
2020-10-04 11:17:29.985 (Air purifier bedroom) Calling heartbeat handler update status.
2020-10-04 11:17:40.505 (Air purifier living room) Skip heartbeat handler because stage not enough 4/5.
2020-10-04 11:17:41.905 Status: User: admin initiated a switch command (891/air purifier bedroom power/off)
2020-10-04 11:17:41.909 Error: (Air purifier bedroom) 'onCommand' failed 'TypeError':'MapEnumCommandToMethod() missing 1 required positional argument: 'level'''.
2020-10-04 11:17:41.909 Error: (Air purifier bedroom) ----> Line 855 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function onCommand
2020-10-04 11:17:41.909 Error: (air purifier bedroom) ----> Line 786 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function onCommand
2020-10-04 11:17:45.015 (air purifier bedroom) Skip heartbeat handler bacause stage not enough 1/2.
2020-10-04 11:17:59.994 (Air purifier bedroom) Calling heartbeat handler UpdateStatus.
2020-10-04 11:18:04.507 (Air purifier Wonzimmer) Calling heartbeat handler UpdateStatus.
2020-10-04 11:18:20.550 (Air purifier bedroom) Skip heartbeat handler bacause stage not enough 1/2.
2020-10-04 11:18:34.077 (Air purifier living room) Skip heartbeat handler because stage not enough 1/5.
2020-10-04 11:18:35.580 (Air purifier bedroom) Calling heartbeat handler update status.
2020-10-04 11:18:46.689 Status: User: admin initiated a switch command (891/air purifier bedroom power/off)
2020-10-04 11:18:46.704 Error: (Air purifier bedroom) 'onCommand' failed 'TypeError':'MapEnumCommandToMethod() missing 1 required positional argument: 'level'''.
2020-10-04 11:18:46.704 Error: (Air purifier bedroom) ----> Line 855 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function onCommand
2020-10-04 11:18:46.704 Error: (air purifier bedroom) ----> Line 786 in '/home/pi/domoticz/plugins/MiioAirPurifier/plugin.py', function 
ProjektC
Posts: 67
Joined: Sunday 17 December 2017 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

Re: DomoticzXiaomiPlugins Xiaomi Mi Air Purifier 2H no action possible

Post by ProjektC »

omoticz-AirPurifier

Does not work either.
I guess this is one of the projects that was started many months ago, but then updates are no longer maintained.
Too bad that such corpses are still active.
Post Reply