bobzomer / domoticz_pyaircontrol

Domoticz plugin to interact with Philips air purifier
MIT License
0 stars 1 forks source link

Thread seems ended unexpectedly #1

Open wlodass opened 3 years ago

wlodass commented 3 years ago

 Hello. I have a problem with your plugin. when I set the IP address of the philips purifier and the protocol (no matter what I choose, whether HTTP or COAP) in the domoticz logs, I see an error of this plugin. I present a screenshot of domoticz logs and plugin configuration. I use raspberri pi 4 (4GB), domoticz installed as a container in docker and Phyton language installed in the system. Could you help me with the correct configuration? I will also add that I have AIRCONRTOL installed and I can control the purifier via the RPi terminal

bobzomer commented 3 years ago

Could you provide your domoticz log and the corresponding configuration? Also which domoticz docker image do you use? domoticz/domoticz?

wlodass commented 3 years ago

Im using a joshuacox/mkdomoticz:arm. The domoticz/domoticz does not working on my Raspberry preety well

Sorry for text but I cannot put a picture/screenshot inside the reply... This is a domoticz logs from portainer:

2021-02-12 07:40:12.535  Status: (Gree) Started.
2021-02-12 07:40:12.761  Status: (Gree) Entering work loop.
2021-02-12 07:40:12.761  Status: (Gree) Initialized version 1.0.3
2021-02-12 07:40:12.814  (Gree) Connected to MQTT Server: 192.168.1.75:1883
2021-02-12 07:40:12.915  (Gree) Received available devices list
2021-02-12 07:40:12.915  (Gree) Device 1e54064a (MAC: f4911e54064a)
**2021-02-12 07:40:21.695  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:40:30.208  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
2021-02-12 07:40:30.210  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:40:30.212  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:40:35.698  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:40:40.246  (Płyta Główna) Temp (Serwer - Temperatura CPU)
**2021-02-12 07:40:49.701  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:41:00.248  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:41:03.704  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:41:17.707  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:41:30.252  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:41:31.709  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:41:45.712  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:41:50.269  (Płyta Główna) Temp (Serwer - Temperatura CPU)
2021-02-12 07:41:50.273  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:41:50.275  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:41:59.715  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:42:00.275  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:42:13.718  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:42:20.304  (Płyta Główna) General/Percentage (HDD /config)
**2021-02-12 07:42:27.723  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:42:30.306  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:42:41.728  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:42:55.731  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:43:00.336  (Płyta Główna) Temp (Serwer - Temperatura CPU)
2021-02-12 07:43:00.341  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:43:09.734  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:43:10.338  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:43:10.339  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:43:23.737  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:43:30.343  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:43:37.740  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:43:51.743  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:44:00.347  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:44:05.745  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:44:10.377  (Płyta Główna) Temp (Serwer - Temperatura CPU)
**2021-02-12 07:44:19.748  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:44:30.382  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
2021-02-12 07:44:30.385  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:44:30.386  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:44:33.751  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:44:47.754  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:45:00.389  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:45:01.838  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:45:10.415  (Płyta Główna) General/Percentage (HDD /config)
**2021-02-12 07:45:15.841  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:45:20.446  (Płyta Główna) Temp (Serwer - Temperatura CPU)
**2021-02-12 07:45:29.844  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:45:30.447  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:45:43.847  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:45:50.450  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:45:50.451  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:45:57.850  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:46:00.453  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:46:11.853  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:46:25.856  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:46:30.486  (Płyta Główna) Temp (Serwer - Temperatura CPU)
2021-02-12 07:46:30.489  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:46:39.858  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:46:53.861  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:47:00.490  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:47:07.864  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:47:10.493  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:47:10.494  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:47:21.867  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:47:30.495  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:47:35.869  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:47:40.523  (Płyta Główna) Temp (Serwer - Temperatura CPU)
**2021-02-12 07:47:49.872  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:48:00.529  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
2021-02-12 07:48:00.536  (Płyta Główna) General/Percentage (HDD /config)
**2021-02-12 07:48:03.876  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:48:17.878  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:48:30.544  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
2021-02-12 07:48:30.547  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:48:30.549  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:48:31.881  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:48:45.884  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:48:50.564  (Płyta Główna) Temp (Serwer - Temperatura CPU)
**2021-02-12 07:48:59.895  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:49:00.567  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:49:13.898  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:49:27.900  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:49:30.571  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:49:41.903  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:49:50.575  (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-12 07:49:50.575  (Płyta Główna) General/Custom Sensor (Process Usage)
**2021-02-12 07:49:55.906  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:50:00.589  (Płyta Główna) Temp (Serwer - Temperatura CPU)
2021-02-12 07:50:00.591  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:50:09.969  Error: Philips hardware (5) thread seems to have ended unexpectedly**
**2021-02-12 07:50:23.972  Error: Philips hardware (5) thread seems to have ended unexpectedly**
2021-02-12 07:50:30.596  (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
**2021-02-12 07:50:37.975  Error: Philips hardware (5) thread seems to have ended unexpectedly**
wlodass commented 3 years ago

I already have installed the domoticz/domoticz image container. When I try to start your plugin (with IP my purifier) I can see in domoticz logs below:

2021-02-12 11:28:16.596 Status: Python Plugin System: (Philips) Started. 2021-02-12 11:28:16.952 Error: Python Plugin System: (pyaircontrol) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/pyaircontrol/:/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-02-12 11:28:16.952 Error: Python Plugin System: (Philips) Module Import failed, exception: 'ModuleNotFoundError' 2021-02-12 11:28:16.952 Error: Python Plugin System: (Philips) Module Import failed: ' Name: pyairctrl' 2021-02-12 11:28:16.952 Error: Python Plugin System: (Philips) Error Line details not available.

After few minutes in this log apears the same error like earlier

bobzomer commented 3 years ago

This plugin uses the pyairctrl external package; Could you install it (pip install pyairctrl) and try again?

wlodass commented 3 years ago

when I put pip install pyairctrl the terminal returns:

root@raspberrypi:~# pip install pyairctrl
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyairctrl
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/pyairctrl/

meybe you meant pip install py-air-control? I have installed py-air-control, but by using pip3 command, whats the diffrence? when I try put pip install py-air-control to console I can read:

root@raspberrypi:~# pip install py-air-control
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting py-air-control
  Using cached https://files.pythonhosted.org/packages/71/6a/077d09fe8ce8aa033568579311a7bb8034e683149d97fbdd80b444ae6a92/py-air-control-2.2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-nX9nm1/py-air-control/

putting airctrl in the terminal:

root@raspberrypi:~# airctrl
GET error: Padding is incorrect.
Will retry after getting a new key ...
Exchanging secret key with the device ...
Saving session_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxx to /root/.pyairctrl
[pwr]   Power: OFF
[pm25]  PM25: 14
[rh]    Humidity: 38
[rhset] Target humidity: 70
[iaql]  Allergen index: 4
[temp]  Temperature: 27
[func]  Function: Purification & Humidification
[mode]  Mode: auto
[om]    Fan speed: 0
[aqil]  Light brightness: 100
[uil]   Buttons light: OFF
[ddp]   Used index: PM2.5
[wl]    Water level: 100
[cl]    Child lock: False
bobzomer commented 3 years ago

You're right. The module is called pyairctrl but the pip package is called py-air-control. If you have both Python 2 and Python 3 on your machine, typically they will be called python (hence pip) for Python 2 and python3 (hence pip3) for Python 3 => again you were right using pip3. Anyway your log seems to tell us there is an import problem...

Nevertheless I've fixed a bunch of stupid errors and push them this morning => maybe you could pull and retest? I cannot test for now, it seems my own purifier has decided not to answer me anymore... :-(

wlodass commented 3 years ago

Its still the same issue:

2021-02-15 14:32:17.388 Error: (pyaircontrol) failed to load 'plugin.py', Python Path used was ':/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-02-15 14:32:17.388 Error: (Philips) Module Import failed, exception: 'ModuleNotFoundError'
2021-02-15 14:32:17.388 Error: (Philips) Module Import failed: ' Name: plugin'
2021-02-15 14:32:17.388 Error: (Philips) Error Line details not available.
2021-02-15 14:32:18.770 (Płyta Główna) Temp (Serwer - Temperatura CPU)
2021-02-15 14:32:38.775 (Płyta Główna) General/Percentage (Serwer - Użycie pamięci)
2021-02-15 14:32:38.778 (Płyta Główna) General/Custom Sensor (Process Usage)
2021-02-15 14:32:48.793 (Płyta Główna) General/Percentage (HDD /config)
2021-02-15 14:32:58.797 (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
2021-02-15 14:33:24.829 Error: Philips hardware (7) thread seems to have ended unexpectedly
2021-02-15 14:33:28.824 (Płyta Główna) Temp (Serwer - Temperatura CPU)
2021-02-15 14:33:28.829 (Płyta Główna) General/Percentage (Serwer - Wykorzystanie CPU)
2021-02-15 14:33:38.831 Error: Philips hardware (7) thread seems to have ended unexpectedly
2021-02-15 14:33:52.834 Error: Philips hardware (7) thread seems to have ended unexpectedly 
bobzomer commented 3 years ago

It seems to be a problem related to Python module loading. Could you check if you find a pyairctrl directory in one of the directories listed in the first line of your log extract (there should be also a py_air_control-X.Y.Z.dist-info but this is not what we are looking for)?

Generally pip packages are installed under a site-packages directory, but I don't see any listed in your log. If you don't find your pip package in one of the listed directory but you find it anywhere else, you could create a new file in one the listed directories, ending with the .pth prefix, and containing the full path to the directory containing the pyairctrl directory. This should add this directory to the list of Python paths.

wlodass commented 3 years ago

I found pyairctrl directory in location path: /usr/local/lib/python3.7/dist-packages There is also:

py_air_control_exporter
py_air_control_exporter-0.3.0.dist-info
py_air_control-2.2.0.dist-info
pyairctrl
CoAPthon3-1.0.1.dist-info

in other path I can't see related directories

wlodass commented 3 years ago

Maybe its a problem with domoticz installed as docker container? Maybe i have to install it as system service?

bobzomer commented 3 years ago

Just to be sure: did you install your pip package with the system Python or with the one embedded in your domoticz container?

Maybe you should just try:

docker exec YOUR_DOCKER_CONTAINER python -m pip install py-air-control
wlodass commented 3 years ago

I had to change phyton to python3. And now domoticz logs present:

2021-02-16 12:19:01.822 Error: (Philips) 'onHeartbeat' failed 'AttributeError':''PyAirControl' object has no attribute 'client''.
2021-02-16 12:19:01.822 Error: (Philips) ----> Line 183 in '/src/domoticz/plugins/domoticz_pyaircontrol/plugin.py', function onHeartbeat
2021-02-16 12:19:01.822 Error: (Philips) ----> Line 139 in '/src/domoticz/plugins/domoticz_pyaircontrol/plugin.py', function onHeartbeat
2021-02-16 12:19:01.822 Error: (Philips) ----> Line 83 in '/src/domoticz/plugins/domoticz_pyaircontrol/plugin.py', function onPollDevice
bobzomer commented 3 years ago

I guess heartbeat was called before start => do you have a onStart called in your log before this?

I've pushed an extra check to avoid problem in this case.

wlodass commented 3 years ago

Yes, there was:

2021-02-16 12:56:00.044 Error: (Philips) 'onStart' failed 'Exception'.

wlodass commented 3 years ago

Briliant, it almost working ;). Now I have no erros in logs on start domoticz, and have some devices from my Philips purifier but all of them dont send any information. When I try to change status of anything in log a errors apear for example trying to turn on/off:

2021-02-16 13:43:22.222 Status: User: Admin (IP: 192.168.1.75) initiated a switch command (21/Oczyszczacz - Wł/Wył/On)
2021-02-16 13:43:22.261 Error: (Philips) 'onCommand' failed 'AttributeError':''NoneType' object has no attribute 'set_values''.
2021-02-16 13:43:22.261 Error: (Philips) ----> Line 170 in '/src/domoticz/plugins/domoticz_pyaircontrol/plugin.py', function onCommand
2021-02-16 13:43:22.261 Error: (Philips) ----> Line 130 in '/src/domoticz/plugins/domoticz_pyaircontrol/plugin.py', function onCommand 
bobzomer commented 3 years ago

You cannot use commands since the client did not load correctly at startup. Don't you have an error related to Start? Do you a "onStart called"? Have you configured the plugin correctly? I guess from your previous log showing the manual command you have selected http as protocol? Have you also provided the IP address?

I've pushed another version with minor fixes.

wlodass commented 3 years ago

I don't have any errors when I use purifier IP adress and HTTP protocol on start/restart domoticz container. It seems to me there is a problem with Phyton. I never installing Phyton in this container with docker exec command like recently I cloned pyaircontrol packages. Sory, I'm learning linux and I can make essential mistakes, just like I didn't know that you need to download an external package to the container, I thought it was enough that it is somewhere in the system

bobzomer commented 3 years ago

And by bad luck you try to use my plugin whose development is stalled because my purifier does not answer me anymore... :-)

For your information, docker is a container technology. Its aim is to use software by downloading a contained image, without having to rely on anything on your system and without having to modify your system.

wlodass commented 3 years ago

I'm beginning to understand linux and docker technology but very slowly. I'm learning it on my own in free time. I'm not a programming student. I belive that we can run my purifier via domoticz together :D I was looking for other philips purifier domoticz plugin but I dont found. You are my one and only way to connect domoticz and purifier :) btw. whats wrong with you purifier?

bobzomer commented 3 years ago

What's the current status? Is it still failing? Can you enable debug logging in domoticz to try to clarify what happens?

sanderdewit commented 3 years ago

Briliant, it almost working ;). Now I have no erros in logs on start domoticz, and have some devices from my Philips purifier but all of them dont send any information. When I try to change status of anything in log a errors apear for example trying to turn on/off:

2021-02-16 13:43:22.222 Status: User: Admin (IP: 192.168.1.75) initiated a switch command (21/Oczyszczacz - Wł/Wył/On)
2021-02-16 13:43:22.261 Error: (Philips) 'onCommand' failed 'AttributeError':''NoneType' object has no attribute 'set_values''.
2021-02-16 13:43:22.261 Error: (Philips) ----> Line 170 in '/src/domoticz/plugins/domoticz_pyaircontrol/plugin.py', function onCommand
2021-02-16 13:43:22.261 Error: (Philips) ----> Line 130 in '/src/domoticz/plugins/domoticz_pyaircontrol/plugin.py', function onCommand 

I'm having the same issue. running Domoticz on a Raspberry pi, so no Docker in this case. This was related due to the fact that the purifier did not support the COAP protocol and the port was closed.

bobzomer commented 3 years ago

@sanderdewit Could you enable debug logging in Domoticz and send me your full log?

sanderdewit commented 3 years ago
2021-04-19 22:19:28.713  Status: philips: (philips) Entering work loop.
2021-04-19 22:19:28.713  philips hardware started.
2021-04-19 22:19:28.714  Status: philips: (philips) Started.
2021-04-19 22:19:29.407  Status: philips: (philips) Initialized version 1.0.0, author 'Bruno Obsomer'
2021-04-19 22:19:29.409  philips: (philips) Create Power
2021-04-19 22:19:29.409  Error: (philips) Failed to initialize Options dictionary for Hardware/Unit combination (7:1): Only "string" type dictionary entries supported, but entry has type "int"
2021-04-19 22:19:29.410  philips: (philips) Create PM2.5
2021-04-19 22:19:29.411  philips: (philips) Create Relative humidity
2021-04-19 22:19:29.412  philips: (philips) Create Target humidity
2021-04-19 22:19:29.413  philips: (philips) Create Allergen index
2021-04-19 22:19:29.414  philips: (philips) Create Temperature
2021-04-19 22:19:29.415  philips: (philips) Create Buttons light
2021-04-19 22:19:29.415  Error: (philips) Failed to initialize Options dictionary for Hardware/Unit combination (7:11): Only "string" type dictionary entries supported, but entry has type "int"
2021-04-19 22:19:29.416  philips: (philips) Create Pre-filter and Wick
2021-04-19 22:19:29.418  philips: (philips) Create HEPA filter
2021-04-19 22:19:29.419  philips: (philips) Create Active carbon filter
2021-04-19 22:19:29.420  philips: (philips) Create Wick filter
2021-04-19 22:19:29.421  philips: (philips) Create [ERROR] Message
2021-04-19 22:19:29.422  philips: (philips) Starting pyaircontrol on http/10.0.10.29
2021-04-19 22:19:29.482  philips: (philips) onStart called
2021-04-19 22:19:38.098  philips: (philips) onHeartbeat called
2021-04-19 22:19:38.127  Status: User: Admin (IP: 10.0.10.48) initiated a switch command (93/philips - Power/On)
2021-04-19 22:19:38.175  philips: (philips) onCommand called for Unit 1: Parameter 'On', Level: 0
2021-04-19 22:19:38.189  Error: philips: (philips) 'onCommand' failed 'HTTPError'.
2021-04-19 22:19:38.189  Error: philips: (philips) ----> Line 170 in '/home/pi/domoticz/plugins/Philips/plugin.py', function onCommand
2021-04-19 22:19:38.189  Error: philips: (philips) ----> Line 130 in '/home/pi/domoticz/plugins/Philips/plugin.py', function onCommand
2021-04-19 22:19:38.189  Error: philips: (philips) ----> Line 170 in '/usr/local/lib/python3.7/dist-packages/pyairctrl/http_client.py', function set_values
2021-04-19 22:19:38.189  Error: philips: (philips) ----> Line 222 in '/usr/lib/python3.7/urllib/request.py', function urlopen
2021-04-19 22:19:38.189  Error: philips: (philips) ----> Line 531 in '/usr/lib/python3.7/urllib/request.py', function open
2021-04-19 22:19:38.189  Error: philips: (philips) ----> Line 641 in '/usr/lib/python3.7/urllib/request.py', function http_response
2021-04-19 22:19:38.189  Error: philips: (philips) ----> Line 569 in '/usr/lib/python3.7/urllib/request.py', function error
2021-04-19 22:19:38.190  Error: philips: (philips) ----> Line 503 in '/usr/lib/python3.7/urllib/request.py', function _call_chain
2021-04-19 22:19:38.190  Error: philips: (philips) ----> Line 649 in '/usr/lib/python3.7/urllib/request.py', function http_error_default

output of airctrl via console;'

[om]                          Fan speed: 0
[pwr]                         Power: OFF
[cl]                          Child lock: False
[aqil]                        Light brightness: 0
[uil]                         Buttons light: OFF
[mode]                        Mode: sleep
[func]                        Function: Purification & Humidification
[rhset]                       Target humidity: 50
[rh]                          Humidity: 50
[temp]                        Temperature: 20
[pm25]                        PM25: 1
[iaql]                        Allergen index: 1
[aqit]                        Air quality notification threshold: 4
[ddp]                         Used index: IAI
[wl]                          Water level: 100