You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device works fine in general both main light and rgb ring were identified automatically and work fine. However there is not power_outage_memory which is pretty important to me.
Device identifies itself as lumi.light.acn032.
Solution description
I noticed zigbee2mqtt added this recently. So I tried to replicate this:
With a quirk like this:
classLumiBasicCluster(CustomCluster, Basic):
"""Hue Motion Basic cluster."""manufacturer_id_override=4447attributes=BasicCluster.attributes.copy()
attributes[0xFF19] =ZCLAttributeDef(
id=0xFF19, type=t.Bool, access=ZCLAttributeAccess.Write, is_manufacturer_specific=True,
name="power_outage_memory"
)
classLumiLightAcn032(XiaomiCustomDevice):
""" Aqara Light T1M (ceiling light with RGB ring). This quirk adds support for power on behavior by adding the power_outage_memory attribute, the rest works out of the box. It MIGHT also work for the Model T1 (acn031) but it has not been tested. """signature= {
MODELS_INFO: [("Aqara", "lumi.light.acn032"), ],
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT,
INPUT_CLUSTERS: [
BasicCluster.cluster_id, # 0x0000Identify.cluster_id, # 0x0003Groups.cluster_id, # 0x0004Scenes.cluster_id, # 0x0005OnOff.cluster_id, # 0x0006LevelControl.cluster_id, # 0x0008Color.cluster_id, # 0x0300OppleClusterLightGen2.cluster_id, # 0xFCC0 - manufacturer specific
],
OUTPUT_CLUSTERS: [
Time.cluster_id, # 0x000AOta.cluster_id, # 0x0019
],
},
2: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT,
INPUT_CLUSTERS: [
Identify.cluster_id, # 0x0003Groups.cluster_id, # 0x0004Scenes.cluster_id, # 0x0005OnOff.cluster_id, # 0x0006LevelControl.cluster_id, # 0x0008Color.cluster_id, # 0x03000xFCC0, # 0xFCC0 - manufacturer specific
],
OUTPUT_CLUSTERS: [],
}
}
}
replacement= {
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT,
INPUT_CLUSTERS: [
LumiBasicCluster,
Identify.cluster_id, # 0x0003Groups.cluster_id, # 0x0004Scenes.cluster_id, # 0x0005OnOff.cluster_id, # 0x0006LevelControl.cluster_id, # 0x0008Color.cluster_id, # 0x03000xFCC0,
],
OUTPUT_CLUSTERS: [
Time.cluster_id, # 0x000AOta.cluster_id, # 0x0019
],
},
2: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT,
INPUT_CLUSTERS: [
Identify.cluster_id, # 0x0003Groups.cluster_id, # 0x0004Scenes.cluster_id, # 0x0005OnOff.cluster_id, # 0x0006LevelControl.cluster_id, # 0x0008Color.cluster_id, # 0x0300# OppleClusterLightGen2,0xFCC0,
],
OUTPUT_CLUSTERS: [],
}
}
}
Unfortunately it doesn't work. When I send set attribute message the response is UNSUPPORTED ATTRIBUTE.
Maybe my quirk is incorrect and it doesn't replicate zigbee2mqtt behavior, or maybe someone has any ideas how to fix this? any help will be highly appertained.
The text was updated successfully, but these errors were encountered:
Problem description
Device works fine in general both main light and rgb ring were identified automatically and work fine. However there is not power_outage_memory which is pretty important to me.
Device identifies itself as
lumi.light.acn032
.Solution description
I noticed zigbee2mqtt added this recently. So I tried to replicate this:
With a quirk like this:
Unfortunately it doesn't work. When I send set attribute message the response is UNSUPPORTED ATTRIBUTE.
Maybe my quirk is incorrect and it doesn't replicate zigbee2mqtt behavior, or maybe someone has any ideas how to fix this? any help will be highly appertained.
The text was updated successfully, but these errors were encountered: