Skip to content

Commit

Permalink
Add zcl_type for Aqara FP1E sensor attributes (#3598)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeverley authored Dec 9, 2024
1 parent 97413e3 commit a1f6378
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zhaquirks/xiaomi/aqara/motion_agl1.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from zigpy.zcl.clusters.general import DeviceTemperature
from zigpy.zcl.clusters.measurement import OccupancySensing
from zigpy.zcl.clusters.security import IasZone
from zigpy.zcl.foundation import BaseAttributeDefs, ZCLAttributeDef
from zigpy.zcl.foundation import BaseAttributeDefs, DataTypeId, ZCLAttributeDef

from zhaquirks import LocalDataCluster
from zhaquirks.xiaomi import XiaomiAqaraE1Cluster
Expand Down Expand Up @@ -77,6 +77,7 @@ class AttributeDefs(BaseAttributeDefs):
motion = ZCLAttributeDef(
id=0x0160,
type=AqaraMotion,
zcl_type=DataTypeId.uint8,
access="rp",
is_manufacturer_specific=True,
)
Expand All @@ -93,6 +94,7 @@ class AttributeDefs(BaseAttributeDefs):
motion_sensitivity = ZCLAttributeDef(
id=0x010C,
type=AqaraMotionSensitivity,
zcl_type=DataTypeId.uint8,
access="rw",
is_manufacturer_specific=True,
)
Expand All @@ -101,6 +103,7 @@ class AttributeDefs(BaseAttributeDefs):
occupancy = ZCLAttributeDef(
id=0x0142,
type=AqaraOccupancy,
zcl_type=DataTypeId.uint8,
access="rp",
is_manufacturer_specific=True,
)
Expand Down

0 comments on commit a1f6378

Please sign in to comment.