File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ class AttributeDefs(BaseAttributeDefs):
2525 type = t .uint16_t ,
2626 is_manufacturer_specific = True ,
2727 )
28+ current_summation : Final = ZCLAttributeDef (
29+ id = 0x0301 ,
30+ type = t .uint48_t ,
31+ access = "w" ,
32+ is_manufacturer_specific = True ,
33+ )
2834
2935
3036(
@@ -43,5 +49,13 @@ class AttributeDefs(BaseAttributeDefs):
4349 translation_key = "pulse_configuration" ,
4450 fallback_name = "Pulse configuration" ,
4551 )
52+ .write_attr_button (
53+ attribute_name = ManufacturerMetering .AttributeDefs .current_summation .name ,
54+ attribute_value = 0 ,
55+ cluster_id = ManufacturerMetering .cluster_id ,
56+ endpoint_id = 2 ,
57+ translation_key = "reset_summation_delivered" ,
58+ fallback_name = "Reset summation delivered" ,
59+ )
4660 .add_to_registry ()
4761)
You can’t perform that action at this time.
0 commit comments