My model is a AC3829/50. For the past 10 hours it reports things, I hope the aforementioned issue was just a glitch, and it is now a thing of the past.
Edit: A few hours later the device doesn’t send update anymore again… What the heck is going on? Really the developers at Philips are this bad?
@betaboon appears to have abandoned this, there’s no acknowledgment unfortunately. It’s a pity because this used to work very well and now many of my automations are broken. I wish this device used a ESP8266 so it could be flashed with ESPHome or something. I really don’t care for the Philips app, all I need is remote control and monitoring. I wonder if someone who’s smarter than me could open one up and see what can be done.
However, it does introduce a new error in the log, seems harmless but my ha core does choke every now and then. Not certain if it is related.
Logger: coap
Source: /usr/local/lib/python3.9/site-packages/aiocoap/transports/udp6.py:525
First occurred: 07:42:44 (66 occurrences)
Last logged: 08:17:20
Connection loss was not expected.
I just got my Philips AC2729 and tried the coap version of betaboon mentioned above.
Unfortunately it does not work. I then checked out your PR and manually replaced fan.py in my custom component folder but still not working. Do I need to change other files?
Does anyone have a working version that can be used? It will be nice to start a new fork on GitHub and have it maintained, since betaboon is not maintaining it anymore, but this goes further my programming knowledge
To make this more simple for all of us praying for betaboon to return to his glory, I’ve cloned his repository and merged some of the pull requests into the clone. You can uninstall the non-working betaboon version and give this updated one a try:
Installation is the same as the previous version with HACS custom repository.
For me it seems to work most of the time, but not always. I’m not a dev myself so don’t ask me for help. All I did was reading your comments above, pulling together the fragments and relying on my copy/paste skills. If anyone has deeper skills and wants to make this more solid, then please take over.
Coming weekend I will run a compare of your code vs. my code to see if there are any major deltas. Followed the same process you did and it has been running relatively stable for one month. Only issue is the coap disconnect error which i referenced on GitHub.
Interesting enough, I noticed that the information from the device seems to come through very stable. It is sending commands that currently fails in my setup.
So when I change something in the AirMatters app, it is immediately reflected in Home Assistant. But when I call a service, it doesn’t work most of the time. It’s like listening works, but not talking.
Try to power cycle the device. I have had recently an issue when it was doing some crazy stuff. I set the display to AQI on the device when was running in purifier and humidifier mode and it was continuously switching between AQI and Humidity.
I made the compare; apart from PR #55 which I incorporated in my code (speed modes) there is no difference. Rebooting HA OS however (as suggested by @GSzabados ) may however help; I noticed on my HA instance that it otherwise will not load files listed in the manifest.
Perhaps worth to try my code just to be sure? I have been running it relatively stable since mid October, AC2889/10 with the same FW you have. It incorporates 1 or 2 additional PRs but otherwise similar to yours. The only real disturbance is the COAP loss of connection error in the log.
I did use Peter-J’s change. I have pulled his github repo as the Linux module and just ran Betaboon’s custom component with that, and since no issues. Except the one what I mentioned above. No other changes were required and works since mid October. Maybe once stopped working, but I think there was maybe a power outage or my wife unplugged the airpurifier.
I’m really frustrated. I swapped the repository to @RT1080 and my fans disappeared altogether. So I went back to my own repository and they’re still gone. Now I’m stuck. HA tries to load the integration as I can see in the log, but it takes very long and then HA gives up.