basbruss / adaptive-cover

An Adaptive Cover component for HomeAsisstant to control covers based on the sun's position
MIT License
112 stars 12 forks source link

Manual Override stops working when Range Adjustment is set. #291

Open SirSheik opened 2 months ago

SirSheik commented 2 months ago

What version of Adaptive Cover are you using?

1.4.3

What version of Home Assistant are you using?

2024.8.2

Checklist

Describe the issue

Hello. I open a new bug that I have detected with the operation of the Manual Override. It is not related to the other bug I have open (#288) and I think it was better to handle it separately. In a blind that works well the manual override detection, the manual override detection stops working when I set “Range Adjustment” by selecting the option “Set custom open/close positions for My Cover, if it doesn't fully operate at 0-100%” It works only once and then it never detects manual override again.

Reproduction steps

  1. A blind with the basic configuration, no climate mode, no additional functions. With the following configuration Image 115 Image 116 Image 118

  2. It is confirmed that several manual changes are correctly detected and after the set time it returns to automatic mode.

  3. In the same blind that was working, the configuration is modified and in the “Range Adjustment” section the following values are set. Image 117 *I also tried instead of using the scrollbars, to indicate the setting as “List if interpolation” but nothing changes and the result is the same.

5.Performed the same tests as above and the integration stops detecting manual changes or sometimes it works the first time of the day and then never works again. Image 119

  1. I detected something even more strange, if after checking that the manual detections stop working, I modify the integration configuration, simply accessing it without changing any value and save, the manual detections work again for only one more time and after that it stops working. Configure => Modify Automation Configuration => Do not modify anything and just click on “Submit”.

I hope these steps will be sufficient to try to reproduce the problem. But if you need more tests, let me know.

Diagnostics dump

No response

SirSheik commented 2 months ago

Attached are the logs of a test I did. The shutter was in the 28% position automatically moved by the integration. Image 135 Image 136

The blind is moved manually to the 50% position. Image 137

You can see that the integration does not register the manual change. Image 138

Logs: config_entry-adaptive_cover-01J5P03ZNXR4HVDAEEER9N6W7F.json

I hope they are useful to try to detect the possible bug. Thx