Wifi-LED Binding | Control Kapego PlayLED

  • Platform information:
    • Hardware: Raspberry Pi 3 Model B Rev 1.2
    • OS: Linux 4.19.93-v7+
    • openHAB version:2.5.1-2 (Release Build)
  • Issue of the topic: Wifi-LED Binding with Kapego PlayLED

Hi guys …
I’ve installed the Wifi-LED binding and want to control my Kapego PlayLED with this binding.

After installing the binding I was able to create a thing “Wifi LED”.
In the setup of this thing I entered the IP-address of my Kapego PlayLED Controller.
After this the Thing went to status ONLINE … but I can’t control anything.

I’ve changed the port in the configuration of the thing from 5577 to port 5000.
Because port 5000 is set in the Web-Config of the PlayLED Controller.

But this also didn’t bring me to success.!

I’ve tried the ports 5000, 5577, 25000 and 25001 because of my port-scanner showed me that the following ports are available on the device

I’ve changed the protocol type in the thing configuration to all three types (LD386, LD382, LD382A) and also changed the driver from “CLASSIC” to “FADING”.
With the driver setting “CLASSIC” I was not able to bring the thing to online status … only with “FADING” drive I get the thing online.

These are the items of the Wifi-LED:

Switch   PlayLEDPower          "Eingeschaltet"              {channel="wifiled:wifiled:cfe60406:power"}
Color    PlayLEDColor          "Color"                      {channel="wifiled:wifiled:cfe60406:color"}
Dimmer   PlayLEDWhite          "Weiß"                       {channel="wifiled:wifiled:cfe60406:white"}
Dimmer   PlayLEDWhite2         "Weiß 2"                     {channel="wifiled:wifiled:cfe60406:white2"}
String   PlayLEDProgram        "Programm"                   {channel="wifiled:wifiled:cfe60406:program"}
Dimmer   PlayLEDProgramSpeed   "Programm geschwindigkeit"   {channel="wifiled:wifiled:cfe60406:programSpeed"}

But although it is online I’m not able to control my LED-String.

I’ve got the app “Kapego LED” on my android smartphone and with this app I can control pretty well the LED-stripe. (IC Model: SM16716 / Length: 29m)

Here is the log from activcating the Wifi-Led thing in PaperUI:

2020-01-29 11:56:38.977 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'wifiled:wifiled:cfe60406' takes more than 5000ms.

2020-01-29 11:56:38.980 [WARN ] [ternal.handler.AbstractWiFiLEDDriver] - IOException

java.net.SocketTimeoutException: Read timed out

	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_222]

	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[?:1.8.0_222]

	at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[?:1.8.0_222]

	at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_222]

	at java.io.DataInputStream.readFully(DataInputStream.java:195) ~[?:1.8.0_222]

	at java.io.DataInputStream.readFully(DataInputStream.java:169) ~[?:1.8.0_222]

	at org.openhab.binding.wifiled.internal.handler.AbstractWiFiLEDDriver.getLEDState(AbstractWiFiLEDDriver.java:126) ~[bundleFile:?]

	at org.openhab.binding.wifiled.internal.handler.FadingWiFiLEDDriver.init(FadingWiFiLEDDriver.java:74) [bundleFile:?]

	at org.openhab.binding.wifiled.internal.handler.WiFiLEDHandler.initialize(WiFiLEDHandler.java:76) [bundleFile:?]

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]

	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]

	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]

	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]

	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]

	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

==> /var/log/openhab2/events.log <==

2020-01-29 11:56:39.004 [hingStatusInfoChangedEvent] - 'wifiled:wifiled:cfe60406' changed from INITIALIZING to ONLINE

Hope this is enough of information to solve my problem.
It would be really great if someone can help me to get my LED-Controller running in openHAB.

Thank you very much in advance and best regards … Marco :+1:

Is this Thing created in PaperUI or files? Also, please post the config of your thing.

Hi @H102

the Thing is created in PaperUI.

If someone need more information … please let me know!