From 130dbcb3f16d4b3460c58068ede28bd56e9b389f Mon Sep 17 00:00:00 2001 From: Cris-ET <137873249+Cris-ET@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:20:56 +0200 Subject: [PATCH] Add PPV2 entity for Growatt storage inverter (#121052) --- .../components/growatt_server/sensor_types/storage.py | 8 ++++++++ homeassistant/components/growatt_server/strings.json | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/growatt_server/sensor_types/storage.py b/homeassistant/components/growatt_server/sensor_types/storage.py index e8895755c65..bdad015e95f 100644 --- a/homeassistant/components/growatt_server/sensor_types/storage.py +++ b/homeassistant/components/growatt_server/sensor_types/storage.py @@ -74,6 +74,14 @@ STORAGE_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = ( native_unit_of_measurement=UnitOfPower.WATT, device_class=SensorDeviceClass.POWER, ), + GrowattSensorEntityDescription( + key="storage_solar_production_2", + translation_key="storage_solar_production_2", + api_key="ppv2", + native_unit_of_measurement=UnitOfPower.WATT, + device_class=SensorDeviceClass.POWER, + state_class=SensorStateClass.MEASUREMENT, + ), GrowattSensorEntityDescription( key="storage_battery_percentage", translation_key="storage_battery_percentage", diff --git a/homeassistant/components/growatt_server/strings.json b/homeassistant/components/growatt_server/strings.json index f507387e628..60423884810 100644 --- a/homeassistant/components/growatt_server/strings.json +++ b/homeassistant/components/growatt_server/strings.json @@ -200,7 +200,10 @@ "name": "Lifetime stored charged" }, "storage_solar_production": { - "name": "Solar power production" + "name": "Solar power production 1" + }, + "storage_solar_production_2": { + "name": "Solar power production 2" }, "storage_battery_percentage": { "name": "Battery percentage"