In #70 I added two switches for each cover, forcing the position to be either open, closed or none. In #73, I discovered that this was actually just a single additional functionality for covers, and there are many more for each device. If we'd add a switch for each of these functions, then we would clutter our Home Assistant installation with lots of unwanted switches.
In this PR, I replaced the "force position" switch with an entity service to control the cover's forced position. Current forced position is reported through the cover's attributes.
Example:
Set a cover to forced position "closed":
Result:
This gives users the same amount of control, without adding unnecessary switches.
In #70 I added two switches for each cover, forcing the position to be either open, closed or none. In #73, I discovered that this was actually just a single additional functionality for covers, and there are many more for each device. If we'd add a switch for each of these functions, then we would clutter our Home Assistant installation with lots of unwanted switches.
In this PR, I replaced the "force position" switch with an entity service to control the cover's forced position. Current forced position is reported through the cover's attributes.
Example:
Set a cover to forced position "closed":![image](https://user-images.githubusercontent.com/22068/97791610-90b91f00-1bd4-11eb-9fdf-b295cb247ec9.png)
Result:![image](https://user-images.githubusercontent.com/22068/97791616-9e6ea480-1bd4-11eb-8710-a94401f25750.png)
This gives users the same amount of control, without adding unnecessary switches.