"""Quirk for LIDL CCT bulb.""" from zigpy.profiles import zgp, zha from zigpy.quirks import CustomCluster, CustomDevice from zigpy.zcl.clusters.general import ( Basic, GreenPowerProxy, Groups, Identify, LevelControl, OnOff, Ota, Scenes, Time, ) 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, ) class LidlCCTColorCluster(CustomCluster, Color): """Lidl CCT Lighting custom cluster.""" # Remove RGB color wheel for CCT Lighting: only expose color temperature # LIDL bulbs do not correctly report this attribute (comes back as None in Home Assistant) _CONSTANT_ATTRIBUTES = {0x400A: 16} class CCTLight(CustomDevice): """Lidl CCT Lighting device.""" signature = { MODELS_INFO: [ ("_TZ3000_49qchf10", "TS0502A"), ("_TZ3000_oborybow", "TS0502A"), ("_TZ3000_9evm3otq", "TS0502A"), ("_TZ3000_rylaozuc", "TS0502A"), ("_TZ3000_el5kt5im", "TS0502A"), ("_TZ3000_oh7jddmx", "TS0502A"), ("_TZ3000_8uaoilu9", "TS0502A"), ], ENDPOINTS: { 1: { #