"""GLEDOPTO GL-S-007Z device.""" from zigpy.profiles import zha, zll from zigpy.quirks import CustomDevice from zigpy.zcl.clusters.general import ( Basic, Groups, Identify, LevelControl, OnOff, Scenes, ) from zigpy.zcl.clusters.lighting import Color from zigpy.zcl.clusters.lightlink import LightLink from zhaquirks.const import ( DEVICE_TYPE, ENDPOINTS, INPUT_CLUSTERS, MODELS_INFO, OUTPUT_CLUSTERS, PROFILE_ID, ) from zhaquirks.gledopto import GLEDOPTO class GLS007Z(CustomDevice): """GLEDOPTO GL-S-007Z device.""" signature = { # MODELS_INFO: [(GLEDOPTO, "GL-S-007Z")], ENDPOINTS: { 12: { PROFILE_ID: zha.PROFILE_ID, DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT, INPUT_CLUSTERS: [ Basic.cluster_id, Identify.cluster_id, Groups.cluster_id, Scenes.cluster_id, OnOff.cluster_id, LevelControl.cluster_id, Color.cluster_id, ], OUTPUT_CLUSTERS: [], }, # 11: { PROFILE_ID: zll.PROFILE_ID, DEVICE_TYPE: zll.DeviceType.EXTENDED_COLOR_LIGHT, INPUT_CLUSTERS: [ Basic.cluster_id, Identify.cluster_id, Groups.cluster_id, Scenes.cluster_id, OnOff.cluster_id, LevelControl.cluster_id, Color.cluster_id, ], OUTPUT_CLUSTERS: [], }, # 13: { PROFILE_ID: zll.PROFILE_ID, DEVICE_TYPE: 57694, INPUT_CLUSTERS: [LightLink.cluster_id], OUTPUT_CLUSTERS: [LightLink.cluster_id], }, }, } replacement = { ENDPOINTS: { 12: { PROFILE_ID: zha.PROFILE_ID, DEVICE_TYPE: zha.DeviceType.COLOR_DIMMABLE_LIGHT, INPUT_CLUSTERS: [ Basic.cluster_id, Identify.cluster_id, Groups.cluster_id, Scenes.cluster_id, OnOff.cluster_id, LevelControl.cluster_id, Color.cluster_id, ], OUTPUT_CLUSTERS: [], } } }