2022-04-24 18:50:32 +00:00
{
"config" : {
"abort" : {
"already_configured" : "[%key:common::config_flow::abort::already_configured_account%]"
} ,
"error" : {
"db_url_invalid" : "Database URL invalid" ,
2023-04-15 22:54:56 +00:00
"query_invalid" : "SQL Query invalid" ,
"column_invalid" : "The column `{column}` is not returned by the query"
2022-04-24 18:50:32 +00:00
} ,
"step" : {
"user" : {
"data" : {
"db_url" : "Database URL" ,
2022-04-29 17:00:44 +00:00
"name" : "[%key:common::config_flow::data::name%]" ,
2022-04-24 18:50:32 +00:00
"query" : "Select Query" ,
"column" : "Column" ,
"unit_of_measurement" : "Unit of Measure" ,
"value_template" : "Value Template"
} ,
"data_description" : {
2023-04-17 11:37:27 +00:00
"db_url" : "Database URL, leave empty to use HA recorder database" ,
2022-04-29 17:00:44 +00:00
"name" : "Name that will be used for Config Entry and also the Sensor" ,
2022-04-24 18:50:32 +00:00
"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%]" ,
2022-04-29 17:00:44 +00:00
"name" : "[%key:component::sql::config::step::user::data::name%]" ,
2022-04-24 18:50:32 +00:00
"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%]" ,
2022-04-29 17:00:44 +00:00
"name" : "[%key:component::sql::config::step::user::data_description::name%]" ,
2022-04-24 18:50:32 +00:00
"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%]" ,
2023-04-15 22:54:56 +00:00
"query_invalid" : "[%key:component::sql::config::error::query_invalid%]" ,
"column_invalid" : "[%key:component::sql::config::error::column_invalid%]"
2022-04-24 18:50:32 +00:00
}
2023-04-08 02:32:36 +00:00
} ,
"issues" : {
"entity_id_query_does_full_table_scan" : {
"title" : "SQL query does full table scan" ,
"description" : "The query `{query}` contains the keyword `entity_id` but does not reference the `states_meta` table. This will cause a full table scan and database instability. Please check the documentation and use `states_meta.entity_id` instead."
}
2022-04-24 18:50:32 +00:00
}
}