-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Expose CX5120 as a Climate device #185
Comments
Interesting question, I wasn't even aware that this exists. At the moment, the whole integration is built around the assumption that the base entity is a fan. If someone submits a pull request with a suggestion, I'm happy to check that, but otherwise I'd focus on other stuff right now. |
No worries, I'm not a dev, so I don't think I'm capable of doing it myself. If anyone else could have a go, im happy to test / debug. But thanks for all your efforts with the integration as it is, works fine for me. |
I'd like to reopen and reconsider this. I've just implemented the Would you still be up for testing if I start this? |
Yeah, sure! |
Can you please check for me what the minimum temperature and the maximum temperature settings are on the device or in the Air+ app? The manual says 1 to 37 °C. Is that correct? The manual also talks about two heating settings. Right now, we have implemented High and Low but I thought these were fan speeds. Is the fan speed always the same and this is a heating setting? |
hi, yeah, so it does go from 1 to 37 in the app. With modes there are: |
I've done a first beta but it's a bit of a shot in the dark as I don't have access to a heater and cannot test anything. Please try v0.33.0-beta.1 and let me know if the I've left the modes now as fan modes, but there is also an option to make them so called preset modes. Not sure what is better. We can try both. I'd also appreciate a screenshot of how the controls look like, as I have no idea, really. |
Thanks will try later. I've got some kid taxiing to do today, back later |
Thanks for the help. Curious to hear if the climate thing shows or you just get a log full of errors... |
I realize, I need to take the icons over with the thermometer... |
I've now included the icons and started translation. Please try v0.33.0-beta.2 |
Hi, not seeing the climate entity |
Stupid bug on my end, please try: v0.33.0-beta.3 |
Hmmm, still not getting it with beta 3. |
Next try: v0.33.0-beta.4 I've added some debug logging. If it still doesn't work, please enable logging and share the logs. |
Climate entity not showing up. Looks like there could be something useful at the end of the logs there. |
Very helpful, thanks, will fix tomorrow |
Next try: v0.33.0-beta.5 I found quite a few bugs and tested more. I still struggle to use the right icons in the HVAC mode, but maybe that's ok. Let me know if it works. |
Hi, climate device does appear now. Swing button doesn't seem to work either. I'm not in at the moment, but will get logs later on. Good start! |
I think I found the bug with the switching off. For the swing mode, I've added quite some debugging. How does the swing mode look like in the HA interface? Please try: v0.33.0-beta.6 |
Switching off seems good now - thanks! home-assistant_philips_airpurifier_coap_2024-12-08T17-49-59.541Z.log |
Oh, the preset mode has no icons? |
Ah, good. Now what exactly happens with the swing mode? I don't see any errors in the log |
And does setting the target temperature work? |
Setting temp is all good. The swing mode... |
The separate switch still works? |
Sorry, I meant the swing state, not the power state. |
Yes, but I had a separate switch outside the climate entity before. Does that still work? |
I've added even more debugging output. In the last log I didn't see how the oscillation values are setup. Can you remove the integration and setup fresh? New beta is: v0.33.0-beta.7 |
Hi, OK, so the swing control operates almost the same as it does on the fan entity. Climate: |
Ok, that sounds like a general problem as I thought the swing with the fan worked before, but apparently not? |
Can you please share the output of aioairctrl again with swing on and with swing off |
The log still doesn't show the setup of oscillation. Strange. |
home-assistant_philips_airpurifier_coap_2024-12-08T20-27-53.636Z.log Does this contain what you need? Do I need to get output of aioairctl from somewhere else? Thanks |
The log shows that the oscillation values arrive properly inside the I now went back to the original issue #95 where I added the CX5120 in the first place. It turns out, that we never got the oscillation to work properly. Turning on doesn't work. I've changed now one more thing but if that doesn't do the trick either, we might have a problem. But please try v0.33.0-beta.8 first before I propose something else. |
Hi, just tried beta8, same issue with the swing. Everything else looks good though - fab! :-) |
Is turning off command now turning off? |
Anyhow, I've seen another swing device that had a similar problem. It shows a certain control value when the swing is on, but setting that value via the commands doesn't turn it on. The solution was, that a different value needs to be set to activate the swing. Question is just: which one? 0 is for off, so that should definitely work. To find out the value for on, the owner of that other fan used a trick. They sent a range of control values manually to the device until one of them started the fan. You can read about it here: #137 (comment) Maybe the number they found for the CX3550 works here as well? I'll do a beta with it: v0.33.0-beta.9 But if not, you might want to familiarize yourself with |
Hi, yes, on beta 9, swing off turns it off, but the on isn't working. Just noticed one other thing, the temperature setpoint needs to be a whole number, the climate entity has 0.5 degree granularity. I'll take a look at aioairctrl and see if I can get the correct value, but that will be another day. Huge thanks with the climate entity, brilliant!!! |
In v0.33.0-beta.10 I've now added a temperature step of 1 degree. So the only thing that's missing is the oscillation switch on, correct? |
Hi, yes. All looks good with beta 10, except the oscillation. |
I've now released the work. Thanks so much for all your help and testing. For now, I've left the For the challenge of finding the correct value for oscillation, I'll open a separate issue #227 . Maybe others can help. If you like my work, you can get me a coffee. |
Hi, would it be possible to use a climate entity instead of a fan entity for the CX5120? It shares many characteristics as climate device including set temp, current temp, heating mode and align better with other heating devices.
Thank you.
The text was updated successfully, but these errors were encountered: