basbruss / adaptive-cover

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

Workaround : Hardwired switches (Somfy) #266

Open Sulphuratum opened 2 months ago

Sulphuratum commented 2 months ago

Checklist

Is your feature request related to a problem? Please describe.

My Somfy covers do not update their position state when I use my hardwired switches. They only refresh when you open the official app after using the switches or when the "cover.stop_cover" service is called twice. This leads to the problem where the physical buttons become unusable when using this integration because their changes are never detected, therefore never triggering a manual override.

Describe the solution you'd like

Add a somfy workaround switch to the automation that calls the cover.stop_cover service twice and waits for a second before running the rest of the automatic adjustment whenever a cover will be adjusted. This may stop manual changes occasionally, but it would at least restore functionality of the switches

Describe alternatives you've considered

I considered running the stop service on a timer for all my automated covers, but that seems less elegant than calling it only when a change is supposed to happen.

Additional context

As I do not know how many people have a similar setup this may be a pretty niche usecase.

basbruss commented 1 month ago

This is definitely a niche situation. The integration is designed using the tools that HA provides for covers, so it doesn’t accommodate these cases because the necessary information from another integration or manufacturer isn't provided to HA.

Unfortunately, I can't test this feature myself since I don't have the relevant hardware. However, you're welcome to submit a PR if you require this functionality.