Add new entities for the Growatt Storage inverter (#121507)
parent
5dbaaa9068
commit
60e1df2a87
|
@ -39,6 +39,14 @@ STORAGE_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_grid_discharge_lifetime",
|
||||
translation_key="storage_grid_discharge_lifetime",
|
||||
api_key="eacDisChargeTotal",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_load_consumption_today",
|
||||
translation_key="storage_load_consumption_today",
|
||||
|
@ -63,6 +71,14 @@ STORAGE_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_grid_charged_lifetime",
|
||||
translation_key="storage_grid_charged_lifetime",
|
||||
api_key="eacChargeTotal",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_charge_storage_lifetime",
|
||||
translation_key="storage_charge_storage_lifetime",
|
||||
|
@ -71,6 +87,22 @@ STORAGE_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_solar_output_today",
|
||||
translation_key="storage_solar_output_today",
|
||||
api_key="epvToday",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_solar_output_lifetime",
|
||||
translation_key="storage_solar_output_lifetime",
|
||||
api_key="epvTotal",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_solar_production",
|
||||
translation_key="storage_solar_production",
|
||||
|
@ -168,6 +200,15 @@ STORAGE_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = (
|
|||
state_class=SensorStateClass.MEASUREMENT,
|
||||
precision=2,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_pv_charging_voltage_2",
|
||||
translation_key="storage_pv_charging_voltage_2",
|
||||
api_key="vpv2",
|
||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||
device_class=SensorDeviceClass.VOLTAGE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
precision=2,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_ac_input_frequency_out",
|
||||
translation_key="storage_ac_input_frequency_out",
|
||||
|
@ -213,6 +254,15 @@ STORAGE_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = (
|
|||
state_class=SensorStateClass.MEASUREMENT,
|
||||
precision=2,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_current_2",
|
||||
translation_key="storage_current_2",
|
||||
api_key="iChargePV2",
|
||||
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
device_class=SensorDeviceClass.CURRENT,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
precision=2,
|
||||
),
|
||||
GrowattSensorEntityDescription(
|
||||
key="storage_grid_amperage_input",
|
||||
translation_key="storage_grid_amperage_input",
|
||||
|
|
|
@ -187,6 +187,9 @@
|
|||
"storage_grid_discharge_today": {
|
||||
"name": "Grid discharged today"
|
||||
},
|
||||
"storage_grid_discharge_lifetime": {
|
||||
"name": "Lifetime grid discharged"
|
||||
},
|
||||
"storage_load_consumption_today": {
|
||||
"name": "[%key:component::growatt_server::entity::sensor::mix_load_consumption_today::name%]"
|
||||
},
|
||||
|
@ -196,14 +199,23 @@
|
|||
"storage_grid_charged_today": {
|
||||
"name": "Grid charged today"
|
||||
},
|
||||
"storage_grid_charged_lifetime": {
|
||||
"name": "Lifetime grid charged"
|
||||
},
|
||||
"storage_charge_storage_lifetime": {
|
||||
"name": "Lifetime stored charged"
|
||||
},
|
||||
"storage_solar_production": {
|
||||
"name": "Solar power production 1"
|
||||
"name": "Solar power production (PV1)"
|
||||
},
|
||||
"storage_solar_production_2": {
|
||||
"name": "Solar power production 2"
|
||||
"name": "Solar power production (PV2)"
|
||||
},
|
||||
"storage_solar_output_today": {
|
||||
"name": "Solar output today"
|
||||
},
|
||||
"storage_solar_output_lifetime": {
|
||||
"name": "Lifetime solar output"
|
||||
},
|
||||
"storage_battery_percentage": {
|
||||
"name": "Battery percentage"
|
||||
|
@ -233,7 +245,10 @@
|
|||
"name": "AC input voltage"
|
||||
},
|
||||
"storage_pv_charging_voltage": {
|
||||
"name": "PV charging voltage"
|
||||
"name": "PV1 charging voltage"
|
||||
},
|
||||
"storage_pv_charging_voltage_2": {
|
||||
"name": "PV2 charging voltage"
|
||||
},
|
||||
"storage_ac_input_frequency_out": {
|
||||
"name": "AC input frequency"
|
||||
|
@ -248,7 +263,10 @@
|
|||
"name": "Solar charge current"
|
||||
},
|
||||
"storage_current_1": {
|
||||
"name": "Solar current to storage"
|
||||
"name": "PV1 current to storage"
|
||||
},
|
||||
"storage_current_2": {
|
||||
"name": "PV2 current to storage"
|
||||
},
|
||||
"storage_grid_amperage_input": {
|
||||
"name": "Grid charge current"
|
||||
|
|
Loading…
Reference in New Issue