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

Color change doesn't like on my Controller. #5

Open
dyllan500 opened this issue Jul 1, 2021 · 3 comments
Open

Color change doesn't like on my Controller. #5

dyllan500 opened this issue Jul 1, 2021 · 3 comments

Comments

@dyllan500
Copy link

This is my output of the discovery command.

Address | ID | Model

10.0.0.11 | B4E8421C2D5C | AK001-ZJ2145

I was able to debug your code and found that in the SetColor function this line below is causing the issue.
bytesToSend = append(bytesToSend, byte(sum&0xff))
Once I commented that out the lights change color like normally.
Not sure why that doesn't work for my controller, if you need anything else from me feel free to ask.

@MoonLiightz
Copy link
Owner

Hey, thanks for your advice.
Normally this line generates the required checksum, interesting that it works without. Can you maybe send me the output of the following command?

./magic-home status --json 10.0.0.11

@dyllan500
Copy link
Author

Here you go.
{"DeviceType":51,"State":0,"LedVersionNumber":9,"Mode":97,"Slowness":1,"Color":{"R":182,"G":182,"B":182,"W":0}}

@JetSetDoritos
Copy link

Color change SetColor doesn't work for me either, commenting out that line didn't change anything. Powering on and off works fine.

My output, {"DeviceType":51,"State":1,"LedVersionNumber":8,"Mode":97,"Slowness":1,"Color":{"R":255,"G":0,"B":0,"W":0}}

I believe I have this controller

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

3 participants