mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 04:46: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.WATER` | Control of a water valve.
|
||||||
| `ValveDeviceClass.GAS` | Control of a gas valve.
|
| `ValveDeviceClass.GAS` | Control of a gas valve.
|
||||||
|
|
||||||
|
|
||||||
### States
|
### States
|
||||||
|
|
||||||
| Constant | Description
|
The state is defined by setting it's properties. The resulting state is using the `ValveState` enum to return one of the below members.
|
||||||
|----------|------------------------|
|
|
||||||
| `STATE_OPENING` | The valve is in the process of opening to reach a set position.
|
| Value | Description |
|
||||||
| `STATE_OPEN` | The valve has reached the open position.
|
|----------|--------------------------------------------------------------------|
|
||||||
| `STATE_CLOSING` | The valve is in the process of closing to reach a set position.
|
| `OPENING`| The valve is in the process of opening to reach a set position. |
|
||||||
| `STATE_CLOSED` | The valve has reach the closed 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
|
## Supported features
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user