-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flush output when observing #5
base: master
Are you sure you want to change the base?
Conversation
Status-observe will work on console but not when the output is piped to something else. Flushing forces the output out of buffer so piping will work as expected.
I support this :D |
@betaboon, can we give this a go as a beta or something? As it mentioned in the OP, in the other reference, Philips has pushed out a firmware update which breaks the connection with the device, it does respond to commands, but the status update is not working after a while. I have the new firmware since a few days, and I hate that they broke the normal way how the device sent updates. The latest firmware version is 64.3 which does this issue. |
If you want to use / try my fix, you can install it with: |
Thanks, I might going to give it a try. But I am not sure anymore that this is the fix for my issue. Would it solve this issue? |
The other worrying thing in this firmware update, that comments from different people that they are unable to add the device back to the Wifi network and to the Home Care/Air Matters app. |
Thanks @peter-j! I changed the manifest file of the air purifier referencing to your update. After a hard reboot of Hass OS my purifier (ac2889) now runs without issues for nearly 3 days. Also the "handshake issue" appears to have disappeared! |
I can confirm as well that it solved the firmware 64.3 issue, and it survived a wifi restart as well. Just to reiterate, I have restarted my WiFi network and it survived. For power outages the integration has to be patched to be able to reload. @betaboon can this PR be merged? |
@GSzabados - when my purifier is off and HA restarts it does not show up in HA. If however during a reboot of HA the purifier is turned on an entity is created in HA. Do you have a similar experience? If not, how did you solve? |
Actually no, because my purifier is always on. But that should be fixed by an some extra code in the integration to have a unique id for the device and be able to reload the integration. There is another "fix" for that as well, let me search for that conversation and get back to you. |
@ronaldt80, I see that you were discussing the issue there as well. betaboon/philips-airpurifier-coap#57 This forced reconnect would be a solution for the issue what you have mentioned. But the cleanest would be the reload integration with unique id. |
@GSzabados - I will try that solution. Mistook this to be a different issue (eg. power outage of the purifier whilst HA is running). On the point of a unique id, the entity is setup to get a unique id right?
|
betaboon/philips-airpurifier-coap#28 (comment) And I was a bit mislead, it needs a config entity to be able to reload. |
I am so disappointed that this issue sits here for 5 months and the fix works for everyone who implemented it, but the codeowner still hasn't bothered to reply to the topic or to merge the PR, meanwhile actively developing other projects.... At least would give write access to other people to carry on with the development. |
As much as i understand your disappointment, this is open source, there is no obligation to serve us, there is no money made in serving us and in the end everybody has only a finite amount of time each day and still has to make a living to pay bills. Just have a look at the forks |
This is not about the service, but at least look at it and say a word if someone would like to add a fix to your code. Staggered forks are not really a solution, and really that is the main problem with any Anyhow, just my 2 cents... |
Status-observe will work on console but not when the output is piped to something else. Flushing forces the output out of buffer so piping will work as expected.
see rgerganov/py-air-control#93
and #4