I’ve set up the WiFi LED binding to control Magic Home led controllers. After adding the binding, the OpenHAB system detects automatically the things. I’ve added one controller as a new binding and wrote the following items file
Switch Home_Bar2_Power "Bar 2" { channel="wifiled:wifiled:DC4F228B6A8A:power" }
Color Home_Bar2_Color "Bar 2" { channel="wifiled:wifiled:DC4F228B6A8A:color" }
Dimmer Home_Bar2_Brightness "Bar 2" { channel="wifiled:wifiled:DC4F228B6A8A:white" }
By using the Paper UI I can power on or power off the device. But when I want to control the color, nothing changes. The log files shows:
2020-05-02 19:13:15.703 [ome.event.ItemCommandEvent] - Item 'Home_Bar2_Color' received command 122,100,14
2020-05-02 19:13:15.704 [nt.ItemStatePredictedEvent] - Home_Bar2_Color predicted to become 122,100,14
2020-05-02 19:13:15.708 [vent.ItemStateChangedEvent] - Home_Bar2_Color changed from 240.000007152557373046875000,100,100 to 122,100,14
Although the log says that the color has changed, I don’t see any change. And after a few seconds in the log file:
2020-05-02 19:13:28.524 [vent.ItemStateChangedEvent] - Home_Bar2_Color changed from 122,100,14 to 240.000007152557373046875000,100,100
When I change the color by using the Magic Home app on my phone to change the color, the color is indeed changed and I see in the log file
2020-05-02 19:14:28.747 [vent.ItemStateChangedEvent] - Home_Bar2_Color changed from 240.000007152557373046875000,100,100 to 119.76470947265625000,100,100
I’ve tried to change the device protocal from LD382A to something else, but this doesn’t solve the problem.
What am I doing wrong?
– Ivan