Xiaomi Humidifier

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

mozo78
Posts: 22
Joined: Friday 09 June 2017 6:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by mozo78 »

molnaratti wrote: Friday 28 September 2018 20:12
mgrom wrote: Tuesday 12 June 2018 9:03 I've modified python plugin for Xiaomi Air Purifier, and created plugin for Xiaomi Air Humidifier:
https://github.com/mgrom/domoticz-AirHumidifier

Have fun!
What could be the problem?

Code: Select all

pi@raspberrypi:~/domoticz/plugins/domoticz-AirHumidifier $ ./MyHumidify.py 192.168.1.191 581386dbf6457cdf84aef497e6a167fd --debug
Namespace(IPaddress='192.168.1.191', debug=True, mode=None, power=None, targetLevel=None, token='581386dbf6457cdf84aef497e6a167fd')
Traceback (most recent call last):
  File "./MyHumidify.py", line 59, in <module>
    print(MyHumidifier.status())
  File "/usr/local/lib/python3.5/dist-packages/miio/airhumidifier.py", line 254, in status
    properties
  File "/usr/local/lib/python3.5/dist-packages/miio/device.py", line 270, in send
    raise DeviceError(m.data.value["error"])
miio.exceptions.DeviceError: {'message': 'UART timeout', 'code': -9999}
Hi, I have the same problem. The purifier and the philips lamp goes well, only the humidifier not. When I try it with miiocli, the humidifier answers. What can be the problem?
Mazur
Posts: 3
Joined: Friday 01 November 2019 13:47
Target OS: Windows
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by Mazur »

I have the same error
Eraser78
Posts: 3
Joined: Thursday 02 August 2018 14:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by Eraser78 »

mozo78 wrote: Friday 05 April 2019 8:11
molnaratti wrote: Friday 28 September 2018 20:12
mgrom wrote: Tuesday 12 June 2018 9:03 I've modified python plugin for Xiaomi Air Purifier, and created plugin for Xiaomi Air Humidifier:
https://github.com/mgrom/domoticz-AirHumidifier

Have fun!
What could be the problem?

Code: Select all

pi@raspberrypi:~/domoticz/plugins/domoticz-AirHumidifier $ ./MyHumidify.py 192.168.1.191 581386dbf6457cdf84aef497e6a167fd --debug
Namespace(IPaddress='192.168.1.191', debug=True, mode=None, power=None, targetLevel=None, token='581386dbf6457cdf84aef497e6a167fd')
Traceback (most recent call last):
  File "./MyHumidify.py", line 59, in <module>
    print(MyHumidifier.status())
  File "/usr/local/lib/python3.5/dist-packages/miio/airhumidifier.py", line 254, in status
    properties
  File "/usr/local/lib/python3.5/dist-packages/miio/device.py", line 270, in send
    raise DeviceError(m.data.value["error"])
miio.exceptions.DeviceError: {'message': 'UART timeout', 'code': -9999}
Hi, I have the same problem. The purifier and the philips lamp goes well, only the humidifier not. When I try it with miiocli, the humidifier answers. What can be the problem?
Try to change line 38 in MyHumidify.py
from:
MyHumidifier = miio.airhumidifier.AirHumidifier(args.IPaddress, args.token)

To one of these lines, depending on your device:
MyHumidifier = miio.airhumidifier.AirHumidifierCA1(args.IPaddress, args.token)
MyHumidifier = miio.airhumidifier.AirHumidifierCB1(args.IPaddress, args.token)

Grtz,
DCRM
Posts: 2
Joined: Saturday 08 February 2020 20:07
Target OS: Windows
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by DCRM »

Hi! I'm mod this plugin
  • FIX! Work on windows and linux devices
    Add Russian translation
    Add Waterlevel sensor
    Add select model list (zhimi.humidifier.v1 / zhimi.humidifier.ca1 / zhimi.humidifier.cb1)
https://github.com/develop-dvs/domoticz-AirHumidifier2
molnaratti
Posts: 34
Joined: Friday 02 February 2018 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by molnaratti »

DCRM wrote: Saturday 08 February 2020 20:10 Hi! I'm mod this plugin
  • FIX! Work on windows and linux devices
    Add Russian translation
    Add Waterlevel sensor
    Add select model list (zhimi.humidifier.v1 / zhimi.humidifier.ca1 / zhimi.humidifier.cb1)
https://github.com/develop-dvs/domoticz-AirHumidifier2
Nice work! Thank you! :)
Gytis
Posts: 2
Joined: Friday 20 July 2018 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by Gytis »

DCRM wrote: Saturday 08 February 2020 20:10 Hi! I'm mod this plugin
  • FIX! Work on windows and linux devices
    Add Russian translation
    Add Waterlevel sensor
    Add select model list (zhimi.humidifier.v1 / zhimi.humidifier.ca1 / zhimi.humidifier.cb1)
https://github.com/develop-dvs/domoticz-AirHumidifier2
Doesn't work:

Code: Select all

2020-04-06 13:43:21.104 Error: (AirHumidifier2) failed to load 'plugin.py', Python Path used was '/home/domoticz/domoticz/plugins/domoticz-AirHumidifier2/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-04-06 13:43:21.104 Error: (Humidifier) Module Import failed, exception: 'RuntimeError'
2020-04-06 13:43:21.104 Error: (Humidifier) Error Line details not available.
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Xiaomi Humidifier

Post by DAVIZINHO »

hello.
i use the plugin until yesterday and works perfect.
today i must reinstall the library because i create a new docker container. and now not works

in domoticz this is the error:

Code: Select all

 2021-03-19 20:58:00.974 Error: Python Plugin System: (AirHumidifier2) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/domoticz-AirHumidifier2/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-03-19 20:58:00.974 Error: Python Plugin System: (Humidificador) Module Import failed, exception: 'ModuleNotFoundError'
2021-03-19 20:58:00.974 Error: Python Plugin System: (Humidificador) Module Import failed: ' Name: yaml'
2021-03-19 20:58:00.974 Error: Python Plugin System: (Humidificador) Error Line details not available. 
when i try to install the mio library apears this warning:

Code: Select all

root@domoticz-oficial:/opt/domoticz# pip3 install -U python-miio                                                                       
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from
_bytes instead                                                                                                                         
  from cryptography.utils import int_from_bytes                                                                                        
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_byt
es instead                                                                                                                             
  from cryptography.utils import int_from_bytes 
i think install pyyaml and now the problem is diferent.
Now the log is this:
2021-03-20 16:58:48.661 Error: Python Plugin System: (Humidificador) Unrecognized error: dictionary update sequence element #0 has length 21; 2 is required
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Xiaomi Humidifier

Post by DAVIZINHO »

nobody have problems?
in a fress install, not works the plugin for the humidifier :-(
artur5236
Posts: 1
Joined: Friday 03 December 2021 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by artur5236 »

I also have issue:
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'HardwareID':'26'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'HomeFolder':'/home/pi/domoticz/plugins/domoticz-AirHumidifier2/'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'StartupFolder':'/home/pi/domoticz/'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'UserDataFolder':'/home/pi/domoticz/'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Database':'/home/pi/domoticz/domoticz.db'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Language':'en'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Version':'0.3'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Author':'DCRM'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Name':'Xiaomi-Humidifier'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Address':'192.168.5.91'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Port':'0'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Key':'AirHumidifier2'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Mode1':'xxxx'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Mode2':'zhimi.humidifier.cb1'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Mode3':'2'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Mode4':'15'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'Mode6':'Debug'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'DomoticzVersion':'2021.1'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'DomoticzHash':xxxx
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) 'DomoticzBuildTime':'2021-04-17 17:29:11'
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) Device count: 0
2021-12-03 12:13:07.226 Xiaomi-Humidifier: (Xiaomi-Humidifier) Pushing 'PollIntervalDirective' on to queue
2021-12-03 12:13:07.226 (Xiaomi-Humidifier) Creating device 'Power'.
2021-12-03 12:13:07.227 (Xiaomi-Humidifier) Creating device 'Source'.
2021-12-03 12:13:07.228 (Xiaomi-Humidifier) Creating device 'Target'.
2021-12-03 12:13:07.228 Xiaomi-Humidifier: (Xiaomi-Humidifier) Devices created.
2021-12-03 12:13:07.228 Xiaomi-Humidifier: (Xiaomi-Humidifier) onHeartbeat called
2021-12-03 12:13:07.380 Xiaomi-Humidifier: (Xiaomi-Humidifier) onHeartbeat finished
2021-12-03 12:13:07.380 (Xiaomi-Humidifier) Processing 'PollIntervalDirective' message
2021-12-03 12:13:07.380 Xiaomi-Humidifier: (Xiaomi-Humidifier) Heartbeat interval set to: 20.
2021-12-03 12:13:07.224 Status: Xiaomi-Humidifier: (Xiaomi-Humidifier) Initialized version 0.3, author 'DCRM'
2021-12-03 12:13:07.380 Error: Xiaomi-Humidifier: (Xiaomi-Humidifier) Unrecognized error: an integer is required (got type str)
DCRM
Posts: 2
Joined: Saturday 08 February 2020 20:07
Target OS: Windows
Domoticz version:
Contact:

Re: Xiaomi Humidifier

Post by DCRM »

2021-12-03 12:13:07.380 Error: Xiaomi-Humidifier: (Xiaomi-Humidifier) Unrecognized error: an integer is required (got type str)
Fixed! update miio and plugin from repo
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest