Skip to content
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

RGB bulbs on v6 bridge? #1

Open
b9chris opened this issue Oct 18, 2018 · 2 comments
Open

RGB bulbs on v6 bridge? #1

b9chris opened this issue Oct 18, 2018 · 2 comments

Comments

@b9chris
Copy link

b9chris commented Oct 18, 2018

Thanks for posting this.

I see the v6 full RGBW ("RGBW/WW/CW") bulbs are documented here, but, does anyone happen to have the documentation for the older RGB+W bulbs?

On the v6 bridge, the opening UDP bytes for a light command are always:
0x80, 0x00, 0x00, 0x00, 0x11, sess1, sess2, 0x00, seqNum, 0x00, 0x31, 0x00, 0x00

Where sess1 and 2 are the Session keys you got from opening a Session on the Bridge, and seqNum is just a rolling byte you keep incrementing with each send.

The total command is 22 bytes, and as you have in your docs, the full RGBW lights finish:
0x08, cmd, 0, 0, 0, val, group, chk

Where:
cmd is the ID of the command (like 0x01 for color)
val is the value of that command (like 0x80 for brightness)
group is which group in that category to talk to, 1-indexed (or pass 0 for all groups)
chk is the checksum of the rest of the command

So, the RGB+W older lights:
Can do Solid colors, but, no saturation
Can be switched between White mode, which is much brighter, and Color mode
No in-between and the white and color circuits can never power up simultaneously.

I have how to turn them off and on - they open like full RGBW lights but their final 8 bytes begin 0x07 where the full RGBWs open 0x08. For example switch on final 8 are:

0x07, 0x03, (isOn ? 0x01 : 0x02), 0, 0, 0, group, chk

Brightness:

0x07, 0x02, brightness, 0, 0, 0, group, chk

But I can't find the docs for the rest: How to switch between White and Color, and how to set the Color. Anyone have those?

@Supernova4422
Copy link
Owner

Is this the documentation you're looking for? https://github.com/Fantasmos/LimitlessLED-DevAPI/blob/master/RGBW.md

@b9chris
Copy link
Author

b9chris commented Oct 18, 2018

I don't think so no, since none of those commands are in the format 0x07.... and I know for a fact that format is what turns these particular lights on over a v6 bridge. My guess is the documentation you're linking to there is for a different bridge or maybe different bulbs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants