mirror of https://github.com/home-assistant/core
55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"title": "Valve",
|
|
"entity_component": {
|
|
"_": {
|
|
"name": "[%key:component::valve::title%]",
|
|
"state": {
|
|
"open": "[%key:common::state::open%]",
|
|
"opening": "Opening",
|
|
"closed": "[%key:common::state::closed%]",
|
|
"closing": "Closing",
|
|
"stopped": "Stopped"
|
|
},
|
|
"state_attributes": {
|
|
"current_position": {
|
|
"name": "Position"
|
|
}
|
|
}
|
|
},
|
|
"water": {
|
|
"name": "Water"
|
|
},
|
|
"gas": {
|
|
"name": "Gas"
|
|
}
|
|
},
|
|
"services": {
|
|
"open_valve": {
|
|
"name": "[%key:common::action::open%]",
|
|
"description": "Opens a valve."
|
|
},
|
|
"close_valve": {
|
|
"name": "[%key:common::action::close%]",
|
|
"description": "Closes a valve."
|
|
},
|
|
"toggle": {
|
|
"name": "[%key:common::action::toggle%]",
|
|
"description": "Toggles a valve open/closed."
|
|
},
|
|
"set_valve_position": {
|
|
"name": "Set position",
|
|
"description": "Moves a valve to a specific position.",
|
|
"fields": {
|
|
"position": {
|
|
"name": "Position",
|
|
"description": "Target position."
|
|
}
|
|
}
|
|
},
|
|
"stop_valve": {
|
|
"name": "[%key:common::action::stop%]",
|
|
"description": "Stops the valve movement."
|
|
}
|
|
}
|
|
}
|