|
| 1 | +"""Philips Hue devices.""" |
| 2 | + |
| 3 | +from zigpy.quirks.v2 import QuirkBuilder |
| 4 | + |
| 5 | +from zhaquirks.philips import PHILIPS, SIGNIFY, PhilipsHueLightCluster |
| 6 | + |
| 7 | +( |
| 8 | + QuirkBuilder() |
| 9 | + .applies_to(SIGNIFY, "LCX001") |
| 10 | + .applies_to(SIGNIFY, "LCX002") |
| 11 | + .applies_to(SIGNIFY, "LCX003") |
| 12 | + .applies_to(SIGNIFY, "LCX005") |
| 13 | + .applies_to(SIGNIFY, "LCX006") |
| 14 | + .friendly_name( |
| 15 | + model="Hue Play gradient lightstrip", |
| 16 | + manufacturer="Philips", |
| 17 | + ) |
| 18 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 19 | + .add_to_registry() |
| 20 | +) |
| 21 | + |
| 22 | +( |
| 23 | + QuirkBuilder() |
| 24 | + .applies_to(SIGNIFY, "LCX012") |
| 25 | + .applies_to(SIGNIFY, "LCX015") |
| 26 | + .applies_to(SIGNIFY, "LCX016") |
| 27 | + .applies_to(SIGNIFY, "LCX017") |
| 28 | + .friendly_name( |
| 29 | + model="Hue Festavia gradient light string", |
| 30 | + manufacturer="Philips", |
| 31 | + ) |
| 32 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 33 | + .add_to_registry() |
| 34 | +) |
| 35 | + |
| 36 | +( |
| 37 | + QuirkBuilder() |
| 38 | + .applies_to(SIGNIFY, "LTB003") |
| 39 | + .friendly_name( |
| 40 | + model="Hue White Ambiance BR30 E26", |
| 41 | + manufacturer="Philips", |
| 42 | + ) |
| 43 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 44 | + .add_to_registry() |
| 45 | +) |
| 46 | + |
| 47 | +( |
| 48 | + QuirkBuilder() |
| 49 | + .applies_to(SIGNIFY, "929003116301") |
| 50 | + .applies_to(SIGNIFY, "929003116401") |
| 51 | + .applies_to(SIGNIFY, "929003116501") |
| 52 | + .applies_to(SIGNIFY, "929003116601") |
| 53 | + .friendly_name( |
| 54 | + model="Hue Perifo light tube", |
| 55 | + manufacturer="Philips", |
| 56 | + ) |
| 57 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 58 | + .add_to_registry() |
| 59 | +) |
| 60 | + |
| 61 | +( |
| 62 | + QuirkBuilder() |
| 63 | + .applies_to(SIGNIFY, "4080248U9") |
| 64 | + .applies_to(SIGNIFY, "915005987101") |
| 65 | + .applies_to(SIGNIFY, "915005987201") |
| 66 | + .applies_to(SIGNIFY, "915005987501") |
| 67 | + .applies_to(SIGNIFY, "915005987601") |
| 68 | + .applies_to(SIGNIFY, "915005987701") |
| 69 | + .applies_to(SIGNIFY, "915005987801") |
| 70 | + .applies_to(SIGNIFY, "929003479601") |
| 71 | + .applies_to(SIGNIFY, "929003479701") |
| 72 | + .friendly_name( |
| 73 | + model="Hue Signe gradient floor lamp", |
| 74 | + manufacturer="Philips", |
| 75 | + ) |
| 76 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 77 | + .add_to_registry() |
| 78 | +) |
| 79 | + |
| 80 | +( |
| 81 | + QuirkBuilder() |
| 82 | + .applies_to(SIGNIFY, "915005986901") |
| 83 | + .applies_to(SIGNIFY, "915005987001") |
| 84 | + .applies_to(SIGNIFY, "915005987401") |
| 85 | + .applies_to(SIGNIFY, "915005987301") |
| 86 | + .friendly_name( |
| 87 | + model="Hue Signe gradient table lamp", |
| 88 | + manufacturer="Philips", |
| 89 | + ) |
| 90 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 91 | + .add_to_registry() |
| 92 | +) |
| 93 | + |
| 94 | +( |
| 95 | + QuirkBuilder() |
| 96 | + .applies_to(SIGNIFY, "915005987901") |
| 97 | + .applies_to(SIGNIFY, "915005988001") |
| 98 | + .applies_to(SIGNIFY, "915005988101") |
| 99 | + .applies_to(SIGNIFY, "915005988201") |
| 100 | + .applies_to(SIGNIFY, "915005988401") |
| 101 | + .applies_to(SIGNIFY, "915005988501") |
| 102 | + .friendly_name( |
| 103 | + model="Hue Play gradient light tube", |
| 104 | + manufacturer="Philips", |
| 105 | + ) |
| 106 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 107 | + .add_to_registry() |
| 108 | +) |
| 109 | + |
| 110 | +( |
| 111 | + QuirkBuilder() |
| 112 | + .applies_to(SIGNIFY, "929003116301") |
| 113 | + .applies_to(SIGNIFY, "929003116401") |
| 114 | + .applies_to(SIGNIFY, "929003116501") |
| 115 | + .applies_to(SIGNIFY, "929003116601") |
| 116 | + .friendly_name( |
| 117 | + model="Hue Perifo light tube", |
| 118 | + manufacturer="Philips", |
| 119 | + ) |
| 120 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 121 | + .add_to_registry() |
| 122 | +) |
| 123 | + |
| 124 | +( |
| 125 | + QuirkBuilder() |
| 126 | + .applies_to(PHILIPS, "7602031P7") |
| 127 | + .applies_to(PHILIPS, "7602031U7") |
| 128 | + .friendly_name( |
| 129 | + model="Hue Go", |
| 130 | + manufacturer="Philips", |
| 131 | + ) |
| 132 | + .replaces(PhilipsHueLightCluster, endpoint_id=11) |
| 133 | + .add_to_registry() |
| 134 | +) |
0 commit comments