Migrate water_heater services to support translations (#96389)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>pull/96480/head
parent
9ef62c7599
commit
aca91db8b5
|
@ -1,29 +1,21 @@
|
||||||
# Describes the format for available water_heater services
|
# Describes the format for available water_heater services
|
||||||
|
|
||||||
set_away_mode:
|
set_away_mode:
|
||||||
name: Set away mode
|
|
||||||
description: Turn away mode on/off for water_heater device.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: water_heater
|
domain: water_heater
|
||||||
fields:
|
fields:
|
||||||
away_mode:
|
away_mode:
|
||||||
name: Away mode
|
|
||||||
description: New value of away mode.
|
|
||||||
required: true
|
required: true
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
boolean:
|
||||||
|
|
||||||
set_temperature:
|
set_temperature:
|
||||||
name: Set temperature
|
|
||||||
description: Set target temperature of water_heater device.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: water_heater
|
domain: water_heater
|
||||||
fields:
|
fields:
|
||||||
temperature:
|
temperature:
|
||||||
name: Temperature
|
|
||||||
description: New target temperature for water heater.
|
|
||||||
required: true
|
required: true
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
|
@ -32,22 +24,16 @@ set_temperature:
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°"
|
unit_of_measurement: "°"
|
||||||
operation_mode:
|
operation_mode:
|
||||||
name: Operation mode
|
|
||||||
description: New value of operation mode.
|
|
||||||
example: eco
|
example: eco
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
|
||||||
set_operation_mode:
|
set_operation_mode:
|
||||||
name: Set operation mode
|
|
||||||
description: Set operation mode for water_heater device.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: water_heater
|
domain: water_heater
|
||||||
fields:
|
fields:
|
||||||
operation_mode:
|
operation_mode:
|
||||||
name: Operation mode
|
|
||||||
description: New value of operation mode.
|
|
||||||
required: true
|
required: true
|
||||||
example: eco
|
example: eco
|
||||||
selector:
|
selector:
|
||||||
|
|
|
@ -18,5 +18,41 @@
|
||||||
"performance": "Performance"
|
"performance": "Performance"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_away_mode": {
|
||||||
|
"name": "Set away mode",
|
||||||
|
"description": "Turns away mode on/off.",
|
||||||
|
"fields": {
|
||||||
|
"away_mode": {
|
||||||
|
"name": "Away mode",
|
||||||
|
"description": "New value of away mode."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"set_temperature": {
|
||||||
|
"name": "Set temperature",
|
||||||
|
"description": "Sets the target temperature.",
|
||||||
|
"fields": {
|
||||||
|
"temperature": {
|
||||||
|
"name": "Temperature",
|
||||||
|
"description": "New target temperature for the water heater."
|
||||||
|
},
|
||||||
|
"operation_mode": {
|
||||||
|
"name": "Operation mode",
|
||||||
|
"description": "New value of the operation mode. For a list of possible modes, refer to the integration documentation."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"set_operation_mode": {
|
||||||
|
"name": "Set operation mode",
|
||||||
|
"description": "Sets the operation mode.",
|
||||||
|
"fields": {
|
||||||
|
"operation_mode": {
|
||||||
|
"name": "[%key:component::water_heater::services::set_temperature::fields::operation_mode::name%]",
|
||||||
|
"description": "[%key:component::water_heater::services::set_temperature::fields::operation_mode::description%]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue