JakeBednard / node-phea

An unoffcial Phillips Hue Entertainment API library for Node.js
MIT License
33 stars 8 forks source link

Gradient Lightstrip Zones #17

Open nukmuk opened 3 years ago

nukmuk commented 3 years ago

Please add support for controlling the individual zones of the new Hue gradient lightstrips instead of the whole strip always changing to a single color.

jdmg94 commented 2 years ago

According to this thread on reddit: https://www.reddit.com/r/Hue/comments/l68tau/addressing_gradient_lightstrips_using/

this line: https://github.com/JakeBednard/node-phea/blob/8c9684151db718a016d4c28bafb9e69ffdcab1a2/src/hue-dtls.ts#L83

should change 0x00 => 0x01 and then you can take up to 3 zones to interact with as individual lights

That means that https://github.com/JakeBednard/node-phea/blob/master/src/hue-light.ts itself needs to be changed to accommodate the lightstrip logic

nukmuk commented 2 years ago

That doesn't seem to work anymore but here is the new way to do it https://developers.meethue.com/forum/t/gradient-lightstrip-and-the-new-entertainment-api/6499

jdmg94 commented 2 years ago

That doesn't seem to work anymore but here is the new way to do it https://developers.meethue.com/forum/t/gradient-lightstrip-and-the-new-entertainment-api/6499

I ended up making a wrapper for the Hue Clip API v2 cause you need the channels available for the entertainment group and V1 doesn't include that information, I've tested it on my setup and it works really good! I'll try to separate it into its own repo and publish it.

Edit: I would appreciate anyone willing to give this a try: https://github.com/jdmg94/Hue-Sync the API is similar to Phea and it supports gradient zones and API v2