Fix for getting stuck in heat_8_15 preset#411
Fix for getting stuck in heat_8_15 preset#411AnonymousRetard wants to merge 3 commits intosockless-coding:masterfrom
Conversation
The set_preset function always calls exit_summer_house mode so enter_summer_house mode must be allowed to re-run
|
I also have this annoying issue and would like to test your fix. How can I do this, is there a file to download now or will this be implemented in a regular update in near future? Thanks! |
|
Hopefully @sockless-coding will accept my pull request and make a release soon but he has not been active for quite a while so I have no idea when that will happen. But my fix is working great. To run it before sockless-coding makes a new release you would have to replace your /custom_components/panasonic_cc/climate.py b/custom_components/panasonic_cc/climate.py file with my version. Which you can view from clicking the tab "files changed" from here. |
Installed the fix, sees to work great. Thanks AnonymousRetard for your work! |
Use local variable "device" instead of dereferencing self.coordinator.device again
|
Great to hear! From my end I have now been testing this for more than two weeks and it's been working perfectly for me. I have an automation which triggers every time the lights in our garage change state and have remained in this state (on/off) for 2 minutes. It also triggers whenever my grouped sensor "minimum outdoor temp" changes (this avoids incorrect temperatures from any one sensor being really hot from being directly in the sun). When lights are off the "minimum outdoor temp" decides whether heat pump should be off or in heat_8_15 preset (this is because the heat_8_15 preset runs the fan on high which is not necessary in the summer). When lights are on I have lots of branching rules deciding if pump should heat, cool or dry. Because "minimum outdoor" temp can change quite often this automation runs quite a lot but most of the time it doesn't really change anything on the heat pump. I'm not sure if any actual API calls to the cloud are made when I set preset to "heat_8_15" while this is already the active preset but without my change here doing this is what causes the pump to get stuck in this mode. |
Fixes multiple calls to _async_enter_summer_house_mode overwriting stored_data
Fixes issue #368
Not well tested yet but I'm currently testing it and it should work based on my previous change which did work.
There might be an even better fix though (maybe "changing" to a setting which is already the same as the currently active one could/should be blocked even higher up?).
What I have tested for more than two weeks is this:
That definately works, didn't get stuck in heat_8_15 a single time after this change. But then stored_data is not used at all and temperature and other settings are forced to their defaults instead of previous values when leaving summer_house_mode.