diff --git a/custom_components/solax_modbus/plugin_solax_ev_charger.py b/custom_components/solax_modbus/plugin_solax_ev_charger.py index da73ae34c..ac9f84b8c 100644 --- a/custom_components/solax_modbus/plugin_solax_ev_charger.py +++ b/custom_components/solax_modbus/plugin_solax_ev_charger.py @@ -1114,6 +1114,19 @@ def value_function_sync_rtc_evc(initval: Any, descr: Any, datadict: dict[str, An register_type=REG_INPUT, register_data_type=REGISTER_U32, order32="big", + allowedtypes=GEN1, + scale=0.1, + native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, + device_class=SensorDeviceClass.ENERGY, + state_class=SensorStateClass.TOTAL_INCREASING, + ), + SolaXEVChargerModbusSensorEntityDescription( + name="Charge Added - Cumulative", + key="charge_added_cum", + register=0x10, + register_type=REG_INPUT, + register_data_type=REGISTER_U32, + allowedtypes=GEN2 | GEN3 | GEN4, scale=0.1, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY,