mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 12:26:29 +00:00
Change valve state is enum (#2328)
This commit is contained in:
parent
a00529d7b4
commit
0b47074ce4
@ -26,15 +26,16 @@ Properties should always only return information from memory and not do I/O (lik
|
||||
| `ValveDeviceClass.WATER` | Control of a water valve.
|
||||
| `ValveDeviceClass.GAS` | Control of a gas valve.
|
||||
|
||||
|
||||
### States
|
||||
|
||||
| Constant | Description
|
||||
|----------|------------------------|
|
||||
| `STATE_OPENING` | The valve is in the process of opening to reach a set position.
|
||||
| `STATE_OPEN` | The valve has reached the open position.
|
||||
| `STATE_CLOSING` | The valve is in the process of closing to reach a set position.
|
||||
| `STATE_CLOSED` | The valve has reach the closed position.
|
||||
The state is defined by setting it's properties. The resulting state is using the `ValveState` enum to return one of the below members.
|
||||
|
||||
| Value | Description |
|
||||
|----------|--------------------------------------------------------------------|
|
||||
| `OPENING`| The valve is in the process of opening to reach a set position. |
|
||||
| `OPEN` | The valve has reached the open position. |
|
||||
| `CLOSING`| The valve is in the process of closing to reach a set position. |
|
||||
| `CLOSED` | The valve has reached the closed position. |
|
||||
|
||||
## Supported features
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user