-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add per-device configuration #3
Comments
I own the "3259 - http" as well as the "2889 - coap". Bacteria and Sleep mode both do not work in this version for my 3259. I will adjust in my local file. Both share the same (in consistent) settings for the various modes, eg some options with "mode" added some without "mode" added:
Betaboon solved this by creating classes for the various models and sticking to API codes:
|
Today I experimented once again with airctrl and my 2889_http |
It is the same for me and that is also what the preset_mode setting above shows: Sleep requires Oddly enough on some models Philips implemented Sleep/Night/Turbo as a mode (which makes sense!) and on some as a speed (which can only be invoked by setting mode to manual). |
I managed a quick fix by adding a bit of code to the async_set_preset_mode as follows:
not a permanent fix as it does not work on all models but at least it allows to trigger a sleep mode on my machine (AC3259) - problem is indeed that on these implementations Turbo and Sleep are speeds and not modes. |
@ronaldt80, @Plevuus thanks for the info! Can you share what's the exact model name of your (http) devices that the integration sets? |
Hi George,
Mine is AC3259_10
Ronald
…On Thu, 15 Apr 2021, 18:18 Georgi Gardev, ***@***.***> wrote:
@ronaldt80 <https://github.com/ronaldt80>, @Plevuus
<https://github.com/Plevuus> thanks for the info! Can you share what's
the exact model name of your (http) devices that the integration sets?
You should be able to see it in the entity attributes:
[image: image]
<https://user-images.githubusercontent.com/2514425/114903209-3d9ff500-9e1f-11eb-8204-d885b4c4853d.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMXEM3E7TIRTXCJU3ITXK6TTI4GULANCNFSM42PNHFYQ>
.
|
@ronaldt80, @Plevuus Thanks. I just released version I added initial configurations for your devices, it may not be perfect, but should be a good start :). For both of your devices, "Manual" mode should be send when setting a custom speed. @Plevuus, I'm not sure about the "General" and the "Bacteria & Virus" modes from your screenshots. We'll have to adjust those. I assume "general" is "auto"? If you can figure out what needs to be send to the Phillips API (e.g. is it @ronaldt80, unless we missed something, I think your device should just work now, and show only the supported modes. Let me know if there are issues :) |
Per-model config is currently located in https://github.com/GeorgeSG/philips_airpurifier_http/blob/master/custom_components/philips_airpurifier_http/model_config.py |
Thanks a lot @GeorgeSG!! |
I looked into it. It turned out that I was actually still using 1.2.0, because I didn't read the breaking change message well enough. But also with 1.4.0 I couldn't set the speed, only preset modes. I made a change and now it works for me on the AC2889. I did create a pull request for it. |
@ronaldt80 hm, after 1.4.0/1.4.1, it's expected that for your device, manual mode will be send automatically. So changing the speed, should explicitly also change the mode to manual. So if you set the percentage to 20% (which is sleep), that's exactly what you want - speed sleep, mode manual. |
Hi George, that is correct, set speed percentage works. Silent/Sleep and
Turbo are however in reality modes which have (in my view) erroneously been
implemented as speeds by Philips.
For all newer models they have corrected this mistake and chosen a mode
implementation. I intend to mirror this in HA, eg when I select sleep mode
behind the scenes speed is set to sleep and mode to manual. That also
allows for usage with the "scheduler" custom component.
My quick fix works but it is not so elegant. Any tips are most welcome:)
Ronald
…On Fri, 30 Apr 2021, 17:49 Georgi Gardev, ***@***.***> wrote:
@ronaldt80 <https://github.com/ronaldt80> hm, after 1.4.0/1.4.1, it's
expected that for your device, manual mode will be send automatically. So
changing the speed, should explicitly also change the mode to manual.
So if you set the percentage to 20% (which is sleep), that's exactly what
you want - speed sleep, mode manual.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMXEM3F6QHL43IWCDWGYK6LTLLGOTANCNFSM42PNHFYQ>
.
|
Hello, got the problem: Error while setting up philips_airpurifier_http platform for fan Any ideas? Thank u |
Can you raise a different issue and include config details as well as model/make and year of purchase? Could be incompatible with http |
thx for your answer, I have two AC2729 bought 03'2019. Dont know why hass looking adrress 192.168.1.21. I used to have platform: philips_airpurifier and for some time worked ok. In configuration.yaml fan:
Below log file: |
Background
Philips devices have slight (or major) differences in their APIs and how they set modes, speeds, etc.
They have differences in the used communication protocol as well - some devices use HTTP, some use CoAP, and some use Encrypted CoAP.
Overview
AC2729_10
has no "bacteria" or "night" mode.AC2889
has a "Sleep Speed", etc, etc.Optional, or future
py-air-control
.Request for info
If you can, please share your device's:
It will be especially useful if you can test with
py-air-control
before that to validate that the values work.Additional context
The text was updated successfully, but these errors were encountered: