You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue very similiar for #383 however the root cause is different than it was in the #383
pi@raspberrypi:~/domoticz/plugins/domoticz-AirHumidifier $ python3
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from miio import AirHumidifier
>>> h = AirHumidifier("192.168.1.20", "b3026a0a55390cc375de32c550axxxxx")
>>> h.status()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.local/lib/python3.7/site-packages/miio/airhumidifier.py", line 314, in status
values.extend(self.send("get_prop", _props[:_props_per_request]))
File "/home/pi/.local/lib/python3.7/site-packages/miio/device.py", line 291, in send
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'UART timeout'}
>>>
h.info() works fine:
I've performed steps from the mentioned ticket:
pi@raspberrypi:~/domoticz/plugins/domoticz-AirHumidifier $ python3
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from miio import AirHumidifier
>>> h = AirHumidifier("192.168.1.20", "b3026a0a55390cc375de32c550axxxxx")
>>> h.info()
zhimi.humidifier.ca1 v1.6.7 (34:CE:00:87:00:00) @ 192.168.1.20 - token: b3026a0a55390cc375de32c550axxxxx
A request for properties throws an exception:
pi@raspberrypi:~/domoticz/plugins/domoticz-AirHumidifier $ python3
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from miio import AirHumidifier
>>> h = AirHumidifier("192.168.1.20", "b3026a0a55390cc375de32c550axxxxx")
>>> properties = ['power', 'mode', 'temp_dec', 'humidity', 'buzzer', 'led_b', 'child_lock', 'limit_hum', 'trans_level', 'speed', 'depth', 'dry', 'use_time', 'button_pressed', 'hw_v
ersion', ]
>>> h.send("get_prop", properties)
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/miio/device.py", line 272, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.local/lib/python3.7/site-packages/miio/device.py", line 310, in send
return self.send(command, parameters, retry_count - 1)
File "/home/pi/.local/lib/python3.7/site-packages/miio/device.py", line 291, in send
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'UART timeout'}
Hi,
I have an issue very similiar for #383 however the root cause is different than it was in the #383
h.info() works fine:
A request for properties throws an exception:
One property is retireved properly:
info and status cli commands work well:
Could you please help me with this issue?
The text was updated successfully, but these errors were encountered: