roldoe / domoticz-philips-air

Domoticz Plugin for Philips Air Purifier
1 stars 0 forks source link

several issues #1

Open sanderdewit opened 3 years ago

sanderdewit commented 3 years ago

I got several errors about the encoding missing when running the plugin; I've added the following in the code to solve it; # -*- coding: utf-8 -*-

Also the following python air control modules should be installed. this was not clear from the readme document. pip3 install py-air-control Otherwise the following errors occurs;


2021-04-18 19:58:37.397 Error: Airpurifier: (pyaircontrol) failed to load 'plugin.py', Python Path used was '<path>
2021-04-18 19:58:37.397 Error: Airpurifier: (Airpurifier) Module Import failed, exception: 'ModuleNotFoundError'
2021-04-18 19:58:37.397 Error: Airpurifier: (Airpurifier) Module Import failed: ' Name: pyairctrl'
2021-04-18 19:58:37.398 Error: Airpurifier: (Airpurifier) Error Line details not available.

Now I'm dealing with the following errors;

2021-04-18 20:01:24.828 Error: Airpurifier: (Airpurifier) 'onStart' failed 'TypeError':'can only concatenate str (not "int") to str'.
2021-04-18 20:01:24.828 Error: Airpurifier: (Airpurifier) ----> Line 310 in 'plugin.py', function onStart
2021-04-18 20:01:24.828 Error: Airpurifier: (Airpurifier) ----> Line 132 in 'plugin.py', function onStart
2021-04-18 20:01:24.828 Error: Airpurifier: (Airpurifier) ----> Line 74 in 'plugin.py', function checkDevices
roldoe commented 3 years ago

There is no dependency on the py-air-control package, but I didn't remove this from the imports. I just updated the plugin.py and removed the import. However, you should install the pycryptodomex. I've added this to the README.

The latest update also fixes the described error. You should be able to get this running now. Reading the sensor values is working stable (for weeks) but changing settings on the device stops working after a while. I will try to fix this bug soon.

HobbyKonijn commented 2 years ago

Installed as recommended: sudo pip3 install -U git+https://github.com/Tanganelli/CoAPthon3@3dc7e5c8d64cc1b10ed36141836ec5ba94fba0c7 sudo pip3 install pycryptodomex Created a directory in domoticz/plugin called Philips added plugin.py

restarted domoticz and added hardware Philips Air purifier added local ip adress of AC3829 restarted domoticz again

Raspberry Pi: Device connected via LAN Python installed: Python 3.7.3 Domoticz: Version: 2022.1 Philips device: AC3829/10

In device tab I see all data fields to be read out -> all 0

Getting following error: 2022-04-04 09:53:15.868 Error: Philips AirPurification: Failed connecting to device... 2022-04-04 10:03:20.087 Error: Philips AirPurification: Lost connection to device, restart...

babujnik commented 1 year ago

unfortunately I got same issue with AC2729 :/ no idea how to make it work any way of debugging/checking what's wrong ? device is up and running, accessible via Philips Air app