-
Notifications
You must be signed in to change notification settings - Fork 878
Expose the 'multicolor' command on Hue lights #3664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d65ef41
Expose the 'multicolor' gradient command on compatible Hue devices
kjagiello 115a84f
Fix docstring on the signe devices
kjagiello 52ab3ac
Add Hue tubes
kjagiello 21a94a7
Add Hue Perifo
kjagiello 7e7b3dc
Rename PhilipsGradientCluster to PhilipsHueCluster
kjagiello 528eef9
Change to new server command syntax and add Hue Go.
BetaRavener c4585ce
Reuse SIGNIFY constant.
BetaRavener 3fedc7a
Merge pull request #1 from BetaRavener/hue-gradient
kjagiello a61ab56
Apply pre-commit auto fixes
pre-commit-ci[bot] 1bf015f
Update zhaquirks/philips/hue_go.py
kjagiello 7f2e461
Utilize the SIGNIFY constant everywhere
kjagiello 6272747
Gather the different Hue lights under a single module
kjagiello 088c14e
Move in Perifo as well
kjagiello df2cdf5
Update zhaquirks/philips/hue.py
kjagiello fdf5f81
Normalize the friendly names
kjagiello 601d0ad
Rename everything 'hue' to 'hue light'
kjagiello 7a02e38
fixup! Rename everything 'hue' to 'hue light'
kjagiello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""Philips Hue Go device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import PHILIPS, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(PHILIPS, "7602031P7") | ||
.also_applies_to(PHILIPS, "7602031U7") | ||
kjagiello marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX001 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX001") | ||
.friendly_name( | ||
model="Hue Play Gradient Lightstrip 55", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX002 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX002") | ||
.friendly_name( | ||
model="Hue Play Gradient Lightstrip 65", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX003 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX003") | ||
.friendly_name( | ||
model="Hue Play Gradient Lightstrip 75", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX005 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX005") | ||
.friendly_name( | ||
model="Hue Play Gradient Lightstrip for PC (24-27)", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX006 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX006") | ||
.friendly_name( | ||
model="Hue Play Gradient Lightstrip for PC (32-34)", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX012 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder("Signify Netherlands B.V.", "LCX012") | ||
.friendly_name( | ||
model="Hue Festavia Gradient Light String 250 (1st-gen)", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX015 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX015") | ||
.friendly_name( | ||
model="Hue Festavia Gradient Light String 250", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX016 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX016") | ||
.friendly_name( | ||
model="Hue Festavia Gradient Light String 100", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Signify LCX017 device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import SIGNIFY, PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder(SIGNIFY, "LCX017") | ||
.friendly_name( | ||
model="Hue Festavia Gradient Light String 500", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Hue Perifo device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder() | ||
.applies_to("Signify Netherlands B.V.", "929003116301") | ||
kjagiello marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
.applies_to("Signify Netherlands B.V.", "929003116401") | ||
.applies_to("Signify Netherlands B.V.", "929003116501") | ||
.applies_to("Signify Netherlands B.V.", "929003116601") | ||
.friendly_name( | ||
model="Hue Perifo Light Tube", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Hue Signe Fradient Floor Lamp device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder() | ||
.applies_to("Signify Netherlands B.V.", "4080248U9") | ||
.applies_to("Signify Netherlands B.V.", "915005987101") | ||
.applies_to("Signify Netherlands B.V.", "915005987201") | ||
.applies_to("Signify Netherlands B.V.", "915005987501") | ||
.applies_to("Signify Netherlands B.V.", "915005987601") | ||
.applies_to("Signify Netherlands B.V.", "915005987701") | ||
.applies_to("Signify Netherlands B.V.", "915005987801") | ||
.applies_to("Signify Netherlands B.V.", "929003479601") | ||
.applies_to("Signify Netherlands B.V.", "929003479701") | ||
.friendly_name( | ||
model="Hue Signe Gradient Floor Lamp", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Hue Signe Fradient Table Lamp device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder() | ||
.applies_to("Signify Netherlands B.V.", "915005986901") | ||
.applies_to("Signify Netherlands B.V.", "915005987001") | ||
.applies_to("Signify Netherlands B.V.", "915005987401") | ||
.applies_to("Signify Netherlands B.V.", "915005987301") | ||
.friendly_name( | ||
model="Hue Signe Gradient Table Lamp", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""Hue Play Gradient Light Tube device.""" | ||
|
||
from zigpy.quirks.v2 import QuirkBuilder | ||
|
||
from zhaquirks.philips import PhilipsHueCluster | ||
|
||
( | ||
QuirkBuilder() | ||
.applies_to("Signify Netherlands B.V.", "915005987901") | ||
.applies_to("Signify Netherlands B.V.", "915005988001") | ||
.applies_to("Signify Netherlands B.V.", "915005988101") | ||
.applies_to("Signify Netherlands B.V.", "915005988201") | ||
.applies_to("Signify Netherlands B.V.", "915005988401") | ||
.applies_to("Signify Netherlands B.V.", "915005988501") | ||
.friendly_name( | ||
model="Hue Play Gradient Light Tube", | ||
manufacturer="Philips", | ||
) | ||
.replaces(PhilipsHueCluster, endpoint_id=11) | ||
.add_to_registry() | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would renaming this to
PhilipsLightCluster
orPhilipsHueLightCluster
make sense?