Skip to content

Commit e43aa43

Browse files
authored
Expose Frient EMI LED reset current summation button (#4484)
* Expose Frient EMI LED `current_summation` write-only attribute * Add write attribute button to reset summation delivered
1 parent 350d79c commit e43aa43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

zhaquirks/develco/emi_led.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)