"""Quirk for LIDL RGB+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 LidlRGBCCTColorCluster(CustomCluster, Color): """Lidl RGB+CCT Lighting custom cluster.""" # Set correct capabilities to ct, xy, hs # LIDL bulbs do not correctly report this attribute (comes back as None in Home Assistant) _CONSTANT_ATTRIBUTES = {0x400A: 0b11001} class RGBCCTLight(CustomDevice): """Lidl RGB+CCT Lighting device.""" signature = { MODELS_INFO: [("_TZ3000_dbou1ap4", "TS0505A")], ENDPOINTS: { 1: { #