58 lines
2.4 KiB
JSON
58 lines
2.4 KiB
JSON
{
|
|
"config": {
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]"
|
|
},
|
|
"error": {
|
|
"db_url_invalid": "Database URL invalid",
|
|
"query_invalid": "SQL Query invalid"
|
|
},
|
|
"step": {
|
|
"user": {
|
|
"data": {
|
|
"db_url": "Database URL",
|
|
"name": "[%key:common::config_flow::data::name%]",
|
|
"query": "Select Query",
|
|
"column": "Column",
|
|
"unit_of_measurement": "Unit of Measure",
|
|
"value_template": "Value Template"
|
|
},
|
|
"data_description": {
|
|
"db_url": "Database URL, leave empty to use default HA database",
|
|
"name": "Name that will be used for Config Entry and also the Sensor",
|
|
"query": "Query to run, needs to start with 'SELECT'",
|
|
"column": "Column for returned query to present as state",
|
|
"unit_of_measurement": "Unit of Measure (optional)",
|
|
"value_template": "Value Template (optional)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"data": {
|
|
"db_url": "[%key:component::sql::config::step::user::data::db_url%]",
|
|
"name": "[%key:component::sql::config::step::user::data::name%]",
|
|
"query": "[%key:component::sql::config::step::user::data::query%]",
|
|
"column": "[%key:component::sql::config::step::user::data::column%]",
|
|
"unit_of_measurement": "[%key:component::sql::config::step::user::data::unit_of_measurement%]",
|
|
"value_template": "[%key:component::sql::config::step::user::data::value_template%]"
|
|
},
|
|
"data_description": {
|
|
"db_url": "[%key:component::sql::config::step::user::data_description::db_url%]",
|
|
"name": "[%key:component::sql::config::step::user::data_description::name%]",
|
|
"query": "[%key:component::sql::config::step::user::data_description::query%]",
|
|
"column": "[%key:component::sql::config::step::user::data_description::column%]",
|
|
"unit_of_measurement": "[%key:component::sql::config::step::user::data_description::unit_of_measurement%]",
|
|
"value_template": "[%key:component::sql::config::step::user::data_description::value_template%]"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"db_url_invalid": "[%key:component::sql::config::error::db_url_invalid%]",
|
|
"query_invalid": "[%key:component::sql::config::error::query_invalid%]"
|
|
}
|
|
}
|
|
}
|