Fix valve names (#36606)

This commit is contained in:
Joost Lekkerkerker 2024-12-30 00:16:30 +01:00 committed by GitHub
parent 76eed772e8
commit fb8e6d28b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,8 +46,8 @@ The following device classes are supported for valves:
### Valve control actions ### Valve control actions
All valves respond to `valve.open`, `valve.close`, and `valve.toggle`. All valves respond to `valve.open_valve`, `valve.close_valve`, and `valve.toggle`.
Valves that allow setting a specific position may also be controlled with `valve.set_position` and `valve.stop`. Valves that allow setting a specific position may also be controlled with `valve.set_valve_position` and `valve.stop_valve`.
| Data attribute | Optional | Description | | Data attribute | Optional | Description |
| ---------------------- | -------- | ----------- | | ---------------------- | -------- | ----------- |
@ -61,12 +61,12 @@ automation:
- trigger: time - trigger: time
at: "07:15:00" at: "07:15:00"
actions: actions:
- action: valve.close - action: valve.close_valve
target: target:
entity_id: valve.demo entity_id: valve.demo
``` ```
### Action `valve.set_position` ### Action `valve.set_valve_position`
Set the position of one or multiple valves if they support setting a specific position. Set the position of one or multiple valves if they support setting a specific position.
@ -83,7 +83,7 @@ automation:
- trigger: time - trigger: time
at: "07:15:00" at: "07:15:00"
actions: actions:
- action: valve.set_position - action: valve.set_valve_position
target: target:
entity_id: valve.demo entity_id: valve.demo
data: data: