diff --git a/custom_components/growatt_server_api/const.py b/custom_components/growatt_server_api/const.py index 0f45c9a..358d21b 100644 --- a/custom_components/growatt_server_api/const.py +++ b/custom_components/growatt_server_api/const.py @@ -8,6 +8,7 @@ DEFAULT_NAME = "Growatt" SERVER_URLS = [ + "https://openapi.growatt.com/", "https://server-api.growatt.com/", "https://server.growatt.com/", "https://server-us.growatt.com/", diff --git a/custom_components/growatt_server_api/manifest.json b/custom_components/growatt_server_api/manifest.json index 0adb854..ddf2792 100644 --- a/custom_components/growatt_server_api/manifest.json +++ b/custom_components/growatt_server_api/manifest.json @@ -1,12 +1,12 @@ { "domain": "growatt_server_api", "name": "Growatt Server API", + "codeowners": ["@muppet3000"], "config_flow": true, "documentation": "https://github.com/muppet3000/homeassistant-growatt_server_api", - "requirements": ["growattServer==1.3.0"], - "codeowners": ["@muppet3000"], "iot_class": "cloud_polling", + "issue_tracker": "https://github.com/muppet3000/homeassistant-growatt_server_api/issues", "loggers": ["growattServerApi"], - "version": "1.0.2", - "issue_tracker": "https://github.com/muppet3000/homeassistant-growatt_server_api/issues" + "requirements": ["growattServer==1.3.0"], + "version": "1.0.3" } diff --git a/custom_components/growatt_server_api/sensor_types/total.py b/custom_components/growatt_server_api/sensor_types/total.py index 2056443..bada191 100644 --- a/custom_components/growatt_server_api/sensor_types/total.py +++ b/custom_components/growatt_server_api/sensor_types/total.py @@ -25,6 +25,7 @@ api_key="todayEnergy", native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, + state_class=SensorStateClass.TOTAL_INCREASING, ), GrowattSensorEntityDescription( key="total_output_power", diff --git a/custom_components/growatt_server_api/translations/bg.json b/custom_components/growatt_server_api/translations/bg.json index 46573dc..41c459c 100644 --- a/custom_components/growatt_server_api/translations/bg.json +++ b/custom_components/growatt_server_api/translations/bg.json @@ -1,17 +1,28 @@ { "config": { + "abort": { + "no_plants": "В този акаунт не са открити соларни централи" + }, "error": { - "invalid_auth": "\u041d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u043e \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u0432\u0430\u043d\u0435" + "invalid_auth": "Невалидно удостоверяване" }, "step": { + "plant": { + "data": { + "plant_id": "Централа" + }, + "title": "Изберете вашата соларна централа" + }, "user": { "data": { - "name": "\u0418\u043c\u0435", - "password": "\u041f\u0430\u0440\u043e\u043b\u0430", + "name": "Име", + "password": "Парола", "url": "URL", - "username": "\u041f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0441\u043a\u043e \u0438\u043c\u0435" - } + "username": "Потребителско име" + }, + "title": "Въведете информацията за Growatt" } } - } -} \ No newline at end of file + }, + "title": "Growatt Server" +}