@@ -66,7 +66,17 @@ class PlugwiseSensorEntityDescription(
6666 key = "hour_consumption" ,
6767 translation_key = "energy_hour_consumption" ,
6868 device_class = SensorDeviceClass .ENERGY ,
69- state_class = SensorStateClass .TOTAL ,
69+ state_class = SensorStateClass .TOTAL_INCREASING ,
70+ native_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
71+ suggested_display_precision = 3 ,
72+ node_feature = NodeFeature .ENERGY ,
73+ entity_registry_enabled_default = False ,
74+ ),
75+ PlugwiseSensorEntityDescription (
76+ key = "hour_production" ,
77+ translation_key = "energy_hour_production" ,
78+ device_class = SensorDeviceClass .ENERGY ,
79+ state_class = SensorStateClass .TOTAL_INCREASING ,
7080 native_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
7181 suggested_display_precision = 3 ,
7282 node_feature = NodeFeature .ENERGY ,
@@ -76,11 +86,21 @@ class PlugwiseSensorEntityDescription(
7686 key = "day_consumption" ,
7787 translation_key = "energy_day_consumption" ,
7888 device_class = SensorDeviceClass .ENERGY ,
79- state_class = SensorStateClass .TOTAL ,
89+ state_class = SensorStateClass .TOTAL_INCREASING ,
8090 native_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
8191 suggested_display_precision = 3 ,
8292 node_feature = NodeFeature .ENERGY ,
8393 ),
94+ PlugwiseSensorEntityDescription (
95+ key = "day_production" ,
96+ translation_key = "energy_day_production" ,
97+ device_class = SensorDeviceClass .ENERGY ,
98+ state_class = SensorStateClass .TOTAL_INCREASING ,
99+ native_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
100+ suggested_display_precision = 3 ,
101+ node_feature = NodeFeature .ENERGY ,
102+ entity_registry_enabled_default = False ,
103+ ),
84104 PlugwiseSensorEntityDescription (
85105 key = "rtt" ,
86106 translation_key = "ping_rrt" ,
0 commit comments