Migrate water_heater services to support translations (#96389)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
pull/96480/head
Franck Nijhof 2023-07-12 13:49:51 +02:00 committed by GitHub
parent 9ef62c7599
commit aca91db8b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 14 deletions

View File

@ -1,29 +1,21 @@
# Describes the format for available water_heater services
set_away_mode:
name: Set away mode
description: Turn away mode on/off for water_heater device.
target:
entity:
domain: water_heater
fields:
away_mode:
name: Away mode
description: New value of away mode.
required: true
selector:
boolean:
set_temperature:
name: Set temperature
description: Set target temperature of water_heater device.
target:
entity:
domain: water_heater
fields:
temperature:
name: Temperature
description: New target temperature for water heater.
required: true
selector:
number:
@ -32,22 +24,16 @@ set_temperature:
step: 0.5
unit_of_measurement: "°"
operation_mode:
name: Operation mode
description: New value of operation mode.
example: eco
selector:
text:
set_operation_mode:
name: Set operation mode
description: Set operation mode for water_heater device.
target:
entity:
domain: water_heater
fields:
operation_mode:
name: Operation mode
description: New value of operation mode.
required: true
example: eco
selector:

View File

@ -18,5 +18,41 @@
"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%]"
}
}
}
}
}