Setting color for WiFi LED binding

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

Solved.

I had to change the protocol to “LD686”. But more important, the color doesn’t change when I try with Paper UI. On the other hand, when I try with HABPanel, it’s working.

The Paper UI is just for administering openHAB. That does not appear to be an important problem.

I am also encountering the exact same issue.

2020-05-14 14:35:54.467 [ome.event.ItemCommandEvent] - Item 'Pulley_Bulb_Color' received command 121,100,100
2020-05-14 14:35:54.468 [nt.ItemStatePredictedEvent] - Pulley_Bulb_Color predicted to become 121,100,100
2020-05-14 14:35:54.471 [vent.ItemStateChangedEvent] - Pulley_Bulb_Color changed from 180.0,100,100 to 121,100,100
2020-05-14 14:36:20.602 [vent.ItemStateChangedEvent] - Pulley_Bulb_Color changed from 121,100,100 to 180.0,100,100

I set the color, it gets pushed out, and then 30~ seconds later it resets. I have tested this with all three of the listed drivers. They all produce the same results. I assume that what is happening is that openhab is not sending the command to the LED, or it is not getting read by the LED, and so when it is next scanned, it reports back the original color.

THING

Thing wifiled:wifiled:600194D85AAB [ ip="192.168.100.185", port=5577, pollingPeriod=30, protocol="LD382", driver="CLASSIC", fadeDurationInMs=1000, fadeSteps=100 ]

ITEM

Color Pulley_Bulb_Color "WIFI LED" <colorlight> (LivingRoom_Color) {channel="wifiled:wifiled:600194D85AAB:color"}

ok, New Info. Installed home assistant to see if I could get them working in there.
I managed to actually get the color to work and change the bulb color, but ONLY when it was set to RGB, not RGBW.

considering that the magic home pro app separates them, I am wondering if there is an incompatibility that is not accounted for in the binding.

1 Like