adamkempenich / magichome-python

MagicHome Wifi protocol for python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to update RGB light status with Type 3

DasCondor opened this issue · comments

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?

Just saw this. What kind of light is it?