Add EntityFeature enum to Cover (#1268)

This commit is contained in:
Franck Nijhof 2022-04-01 18:39:30 +02:00 committed by GitHub
parent c312413c2b
commit dc52483b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,20 +52,21 @@ Properties should always only return information from memory and not do I/O (lik
| `STATE_CLOSING` | The cover is in the process of closing to reach a set position. | `STATE_CLOSING` | The cover is in the process of closing to reach a set position.
| `STATE_CLOSED` | The cover has reach the closed position. | `STATE_CLOSED` | The cover has reach the closed position.
### Supported Features ## Supported Features
Supported features constants are combined using the bitwise or (`|`) operator. Supported features are defined by using values in the `CoverEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
| Constant | Description | | Value | Description |
|----------|--------------------------------------| | ------------------- | -------------------------------------------------------------------------------- |
| `SUPPORT_OPEN` | The cover supports being opened. | `OPEN` | The cover supports being opened. |
| `SUPPORT_CLOSE` | The cover supports being closed. | `CLOSE` | The cover supports being closed. |
| `SUPPORT_SET_POSITION` | The cover supports moving to a specific position between opened and closed. | `SET_POSITION` | The cover supports moving to a specific position between opened and closed. |
| `SUPPORT_STOP` | The cover supports stopping the current action (open, close, set position) | `STOP` | The cover supports stopping the current action (open, close, set position) |
| `SUPPORT_OPEN_TILT` | The cover supports being tilting open. | `OPEN_TILT` | The cover supports being tilting open. |
| `SUPPORT_CLOSE_TILT` | The cover supports being tilting closed. | `CLOSE_TILT` | The cover supports being tilting closed. |
| `SUPPORT_SET_TILT_POSITION` | The cover supports moving to a specific tilt position between opened and closed. | `SET_TILT_POSITION` | The cover supports moving to a specific tilt position between opened and closed. |
| `SUPPORT_STOP_TILT` | The cover supports stopping the current tilt action (open, close, set position) | `STOP_TILT` | The cover supports stopping the current tilt action (open, close, set position) |
## Methods ## Methods