Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zcl_type for Aqara FP1E sensor attributes #3598

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading