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

Unable to update RGB light status with Type 3 #7

Open
DasCondor opened this issue Nov 2, 2021 · 1 comment
Open

Unable to update RGB light status with Type 3 #7

DasCondor opened this issue Nov 2, 2021 · 1 comment

Comments

@DasCondor
Copy link

So I cloned the repo, was able to get the connection working between lights.
I have been able to turn the lights on and off. However, I am unable to set the RGB lighting with the color numbers.
I am able to set the white hue from 'soft' to 'cool'.

So what am I doing wrong.

sample code:
from magichome import MagicHomeApi
controller1 = MagicHomeApi('XXX.XXX.XXX.XXX',3,True)
controller1.get_status()
output: b'\x815#a\x01\x01\x00\x00\x00\x00\x07\xf0\x0fB'
controller1.update_device(0,0,255)
result: 'Cool' white light appears.

Any thoughts?

@adamkempenich
Copy link
Owner

Just saw this. What kind of light is it?

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