2021-07-20 04:30:00 +00:00
|
|
|
{
|
|
|
|
"config": {
|
|
|
|
"step": {
|
|
|
|
"user": {
|
|
|
|
"data": {
|
|
|
|
"location": "Get data for",
|
|
|
|
"api_key": "[%key:common::config_flow::data::access_token%]"
|
|
|
|
},
|
|
|
|
"description": "Visit https://co2signal.com/ to request a token."
|
|
|
|
},
|
|
|
|
"coordinates": {
|
|
|
|
"data": {
|
|
|
|
"latitude": "[%key:common::config_flow::data::latitude%]",
|
|
|
|
"longitude": "[%key:common::config_flow::data::longitude%]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"country": {
|
|
|
|
"data": {
|
|
|
|
"country_code": "Country code"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"error": {
|
|
|
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
|
|
|
"unknown": "[%key:common::config_flow::error::unknown%]",
|
|
|
|
"api_ratelimit": "API Ratelimit exceeded"
|
|
|
|
},
|
|
|
|
"abort": {
|
|
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
|
|
|
"unknown": "[%key:common::config_flow::error::unknown%]",
|
2023-07-13 15:52:50 +00:00
|
|
|
"api_ratelimit": "[%key:component::co2signal::config::error::api_ratelimit%]"
|
2021-07-20 04:30:00 +00:00
|
|
|
}
|
2023-04-06 08:39:49 +00:00
|
|
|
},
|
|
|
|
"entity": {
|
|
|
|
"sensor": {
|
2023-07-13 15:52:50 +00:00
|
|
|
"carbon_intensity": {
|
|
|
|
"name": "CO2 intensity"
|
|
|
|
},
|
|
|
|
"fossil_fuel_percentage": {
|
|
|
|
"name": "Grid fossil fuel percentage"
|
|
|
|
}
|
2023-04-06 08:39:49 +00:00
|
|
|
}
|
2021-07-20 04:30:00 +00:00
|
|
|
}
|
|
|
|
}
|