nikshriv / cync_lights

Home Assistant Integration for controlling Cync switches, plugs, and bulbs
160 stars 53 forks source link

Support for colours for light strips #28

Open hfaran opened 1 year ago

hfaran commented 1 year ago

I looked through the code and there seems to be some support for colours there but unfortunately I don't see a way to change colours for my light strip using Home Assistant. Only brightness and on/off seem to configurable. Is this is a known limitation or should this be working?

nikshriv commented 1 year ago

The integration should support color as long as your light strip does. If you can run my cync_data.py script, you should be able to find the "deviceType" of your light strip in the output json file. Let me know what it is, and I will check to see if I have correctly added support for it.

hfaran commented 1 year ago

deviceType should be 133 per the output here. Thanks!

~/.../nikshriv/cync_data $ cat cbyge_rooms.json | grep deviceType
                        "deviceType": 133,
nikshriv commented 1 year ago

Your device type is already included supported by the integration. Are you still having trouble with this? It should work. Not sure what's going wrong. However, I don't have any of the color light strips, so I have never been able to test the integration with that device type.

halfskye commented 1 year ago

Light strips appear to be working fine for me.

I've got 3 light strips in a single Cync group (imported during configuration) and I can change their color, brightness, etc. They're linked to a motion sensor and I'm using the Adaptive Lighting HACS add-on to adjust their color temperature over the course of the day and it's working well.

Edit: just wanted to share that I'm using both Color Temperature and Color RGB modes from Adaptive Lighting and getting good results. RGB gives deeper reds (not bound to the white light spectrum). And just wanted to clarify that I can set the light strips to any number of colors via HA - cyan, purple, magenta, green, you name it.