diff --git a/zhaquirks/philips/__init__.py b/zhaquirks/philips/__init__.py index 4d910d7a1e..03e8310604 100644 --- a/zhaquirks/philips/__init__.py +++ b/zhaquirks/philips/__init__.py @@ -7,8 +7,7 @@ from zigpy.quirks import CustomCluster import zigpy.types as t from zigpy.zcl import foundation -from zigpy.zcl.clusters.general import Basic, LevelControl, OnOff -from zigpy.zcl.clusters.lighting import Color +from zigpy.zcl.clusters.general import Basic from zigpy.zcl.clusters.measurement import OccupancySensing from zhaquirks.const import ( @@ -90,27 +89,6 @@ class OccupancyCluster(CustomCluster, OccupancySensing): } -class PhilipsOnOffCluster(CustomCluster, OnOff): - """Philips OnOff cluster.""" - - attributes = OnOff.attributes.copy() - attributes.update({0x4003: ("power_on_state", PowerOnState)}) - - -class PhilipsLevelControlCluster(CustomCluster, LevelControl): - """Philips LevelControl cluster.""" - - attributes = LevelControl.attributes.copy() - attributes.update({0x4000: ("power_on_level", t.uint8_t)}) - - -class PhilipsColorCluster(CustomCluster, Color): - """Philips Color cluster.""" - - attributes = Color.attributes.copy() - attributes.update({0x4010: ("power_on_color_temperature", t.uint16_t)}) - - class PhilipsBasicCluster(CustomCluster, Basic): """Philips Basic cluster.""" diff --git a/zhaquirks/philips/llcbloom.py b/zhaquirks/philips/llcbloom.py deleted file mode 100644 index c13ced1a35..0000000000 --- a/zhaquirks/philips/llcbloom.py +++ /dev/null @@ -1,97 +0,0 @@ -"""Quirk for Phillips Hue LivingColors Bloom LLC011 and LLC012.""" -from zigpy.profiles import zll -from zigpy.quirks import CustomDevice -from zigpy.zcl.clusters.general import ( - Basic, - GreenPowerProxy, - Groups, - Identify, - LevelControl, - OnOff, - Ota, - 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.philips import ( - PHILIPS, - PhilipsColorCluster, - PhilipsLevelControlCluster, - PhilipsOnOffCluster, -) - - -class PhilipsLLCBloom(CustomDevice): - """Philips LLC Bloom device.""" - - signature = { - MODELS_INFO: [(PHILIPS, "LLC011"), (PHILIPS, "LLC012")], - ENDPOINTS: { - 11: { - # - PROFILE_ID: zha.PROFILE_ID, - DEVICE_TYPE: zha.DeviceType.EXTENDED_COLOR_LIGHT, - INPUT_CLUSTERS: [ - Basic.cluster_id, - Identify.cluster_id, - Groups.cluster_id, - Scenes.cluster_id, - OnOff.cluster_id, - LevelControl.cluster_id, - LightLink.cluster_id, - 64514, - Color.cluster_id, - 64513, - ], - OUTPUT_CLUSTERS: [Ota.cluster_id], - }, - 242: { - # - PROFILE_ID: 41440, - DEVICE_TYPE: 97, - INPUT_CLUSTERS: [], - OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id], - }, - }, - } - - replacement = { - ENDPOINTS: { - 11: { - PROFILE_ID: zha.PROFILE_ID, - DEVICE_TYPE: zha.DeviceType.EXTENDED_COLOR_LIGHT, - INPUT_CLUSTERS: [ - Basic.cluster_id, - Identify.cluster_id, - Groups.cluster_id, - Scenes.cluster_id, - PhilipsOnOffCluster, - PhilipsLevelControlCluster, - LightLink.cluster_id, - 64514, - PhilipsColorCluster, - 64513, - ], - OUTPUT_CLUSTERS: [Ota.cluster_id], - }, - 242: { - PROFILE_ID: 41440, - DEVICE_TYPE: 97, - INPUT_CLUSTERS: [], - OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id], - }, - } - } - - -class ZHAExtendedColorLight2(CustomDevice): - """Philips ZigBee HomeAutomation extended color bulb device without input cluster 64514.""" - - signature = { - MODELS_INFO: [ - (PHILIPS, "LCL001"), - (PHILIPS, "LCT026"), - (PHILIPS, "4090330P9_01"), - (PHILIPS, "4090330P9_02"), - (PHILIPS, "929002376001"), - (PHILIPS, "929002375901"), - (SIGNIFY, "LCL001"), - (SIGNIFY, "LCT026"), - (SIGNIFY, "4090330P9_01"), - (SIGNIFY, "4090330P9_02"), - (SIGNIFY, "929002376001"), - (SIGNIFY, "929002375901"), - ], - ENDPOINTS: { - 11: { - # - PROFILE_ID: zha.PROFILE_ID, - DEVICE_TYPE: zha.DeviceType.EXTENDED_COLOR_LIGHT, - INPUT_CLUSTERS: [ - Basic.cluster_id, - Identify.cluster_id, - Groups.cluster_id, - Scenes.cluster_id, - OnOff.cluster_id, - LevelControl.cluster_id, - LightLink.cluster_id, - Color.cluster_id, - 64513, - ], - OUTPUT_CLUSTERS: [Ota.cluster_id], - }, - 242: { - # - PROFILE_ID: 41440, - DEVICE_TYPE: 97, - INPUT_CLUSTERS: [], - OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id], - }, - }, - } - - replacement = { - ENDPOINTS: { - 11: { - PROFILE_ID: zha.PROFILE_ID, - DEVICE_TYPE: zha.DeviceType.EXTENDED_COLOR_LIGHT, - INPUT_CLUSTERS: [ - Basic.cluster_id, - Identify.cluster_id, - Groups.cluster_id, - Scenes.cluster_id, - PhilipsOnOffCluster, - PhilipsLevelControlCluster, - LightLink.cluster_id, - PhilipsColorCluster, - 64513, - ], - OUTPUT_CLUSTERS: [Ota.cluster_id], - }, - 242: { - PROFILE_ID: 41440, - DEVICE_TYPE: 97, - INPUT_CLUSTERS: [], - OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id], - }, - } - } diff --git a/zhaquirks/philips/zlldimmablelight.py b/zhaquirks/philips/zlldimmablelight.py deleted file mode 100644 index 18fdd9ff56..0000000000 --- a/zhaquirks/philips/zlldimmablelight.py +++ /dev/null @@ -1,87 +0,0 @@ -"""Quirk for Phillips dimmable bulbs.""" -from zigpy.profiles import zll -from zigpy.quirks import CustomDevice -from zigpy.zcl.clusters.general import ( - Basic, - GreenPowerProxy, - Groups, - Identify, - LevelControl, - OnOff, - Ota, - Scenes, -) -from zigpy.zcl.clusters.lightlink import LightLink - -from zhaquirks.const import ( - DEVICE_TYPE, - ENDPOINTS, - INPUT_CLUSTERS, - MODELS_INFO, - OUTPUT_CLUSTERS, - PROFILE_ID, -) -from zhaquirks.philips import PHILIPS, PhilipsLevelControlCluster, PhilipsOnOffCluster - - -class ZLLDimmableLight(CustomDevice): - """Philips ZigBee LightLink dimmable bulb device.""" - - signature = { - MODELS_INFO: [(PHILIPS, "LWB010"), (PHILIPS, "LWB014")], - ENDPOINTS: { - 11: { - #