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 MagicHomeApicontroller1 = 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.
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?