Furthermore during my testing I found another problem which should know be fixed:
Example: The cover is at 100% and the button to go up is still active (because someone forgot). If you now set a target position via HA the cover goes down to 0% because the state change of the buttons overwrites the target position. I added a helper variable to prevent this.
I'm facing the same issue.
Would be happy if this pull-request is accepted and merged back.
Or is there any reason why this pull request can't be accepted?
This fixes #3 and #4.
Furthermore during my testing I found another problem which should know be fixed: Example: The cover is at 100% and the button to go up is still active (because someone forgot). If you now set a target position via HA the cover goes down to 0% because the state change of the buttons overwrites the target position. I added a helper variable to prevent this.