[SOLVED] WiFI LED Binding - LD741

@jacobkuriakose
it looks like you do not really understand what you are doing, please read this thread and others to understand how OH works… i cant do everything for you - please use your brain :sweat_smile:

you are using my LED Controller ID “A020A61D34BE” and not yours “600194955766

every setting you need to know is already in this thread, please check over and over till you get it to work…

cheers, good luck

1 Like

Sorry…:persevere: Actually I used my controller ID I accidentally copy pasted your ID from the previous post.

Switch LED_1_power          "LED 1 Power"             <led_strip>                 (gLight,OG_Office,OG_Office_Light)    [ "Lighting" ] {channel="wifiled:wifiled:600194955766:power"}
Color  LED_1_color          "LED 1 Farbe [%.0f]"      <hue>                       (OG_Office)                           [ "Lighting" ] {channel="wifiled:wifiled:600194955766:color"}
Dimmer LED_1_speed          "LED 1 Speed"             <volume_knob>               (OG_Office)                                          {channel="wifiled:wifiled:600194955766:programSpeed"}
Dimmer LED_1_white          "Warm Light"              (Light) {channel="wifiled:wifiled:600194955766:white"}
/////////// MODE Switches

String LED_1_program      "LED 1 Preset [MAP(led_preset.map):%s]"    <menu>         (LEDPresets1,OG_Office)  {channel="wifiled:wifiled:600194955766:program"}
Switch LED_1_preset_0     "Strobe"                                   <smoke>        (LEDPresets1)     // Mode: 48
Switch LED_1_preset_1     "Strobe - Custom 1"                        <smoke>        (LEDPresets1)     // Mode: 96
Switch LED_1_preset_2     "Strobe - Rot"                             <smoke>        (LEDPresets1)     // Mode: 49
Switch LED_1_preset_3     "Strobe - Grün"                            <smoke>        (LEDPresets1)     // Mode: 50
Switch LED_1_preset_4     "Strobe - Blau"                            <smoke>        (LEDPresets1)     // Mode: 51
Switch LED_1_preset_5     "Strobe - Cyan"                            <smoke>        (LEDPresets1)     // Mode: 53
Switch LED_1_preset_6     "Strobe - Lila"                            <smoke>        (LEDPresets1)     // Mode: 54
Switch LED_1_preset_7     "Strobe - Gelb"                            <smoke>        (LEDPresets1)     // Mode: 52
Switch LED_1_preset_8     "Strobe - Weiß"                            <smoke>        (LEDPresets1)     // Mode: 55
Switch LED_1_preset_9     "Strobe - R/G/B"                           <smoke>        (LEDPresets1)     // Mode: 57
Switch LED_1_preset_10    "CrossFade - Rot/Grün"                     <flow>         (LEDPresets1)     // Mode: 45
Switch LED_1_preset_11    "CrossFade - Rot/Blau"                     <flow>         (LEDPresets1)     // Mode: 46
Switch LED_1_preset_12    "CrossFade - Blau/Grün"                    <flow>         (LEDPresets1)     // Mode: 47
Switch LED_1_preset_13    "Fade"                                     <colorlight>   (LEDPresets1)     // Mode: 37
Switch LED_1_preset_14    "Fade - Weiß"                              <colorlight>   (LEDPresets1)     // Mode: 44
Switch LED_1_preset_15    "Fade - Grün"                              <colorlight>   (LEDPresets1)     // Mode: 39
Switch LED_1_preset_16    "Fade - Dunkelblau"                        <colorlight>   (LEDPresets1)     // Mode: 40
Switch LED_1_preset_17    "Fade - Gelb"                              <colorlight>   (LEDPresets1)     // Mode: 41
Switch LED_1_preset_18    "Fade - Rot "                              <colorlight>   (LEDPresets1)     // Mode: 38
Switch LED_1_preset_19    "Fade - Hellblau "                         <colorlight>   (LEDPresets1)     // Mode: 42
Switch LED_1_preset_20    "Fade - Lila"                              <colorlight>   (LEDPresets1)     // Mode: 43
Switch LED_1_preset_21    "Fade - R/G/B"                             <colorlight>   (LEDPresets1)     // Mode: 45
Switch LED_1_preset_22    "Jump"                                     <chart>        (LEDPresets1)     // Mode: 56
Switch LED_1_preset_23    "Jump - R/G/B"                             <chart>        (LEDPresets1)     // Mode: 99

Found the problem. The Mode was in “Fading” not in "Classic"

Thank you for help me out…

glad you got it working!

1 Like

I’m facing a new problem, after I restart OpenHAB, my LD No. changes to LD686 to LD382A automatically. I have to assign it every time I restart the OpenHAB. Could you please help me out in this problem…?

Adam, @RiotMode , exactly what I needed. Thanks

Later edit Initially everything worked well and then it suddenly stopped. I then added a thing file in my config and it all seemed allright again:

Thing wifiled:wifiled:DC4F228FE9E4 [ ip="192.168.1.118", port=5577, pollingPeriod=3000, protocol="LD741", driver="CLASSIC", fadeDurationInMs=1000, fadeSteps=100 ]

I also added
97=Color wheel
to the preset map file, so it shows when you are using one of the presets or just the standard colorwheel

1 Like

here is my workaround:

1 Like

Thank you… I did several reboots and now working perfectly…

It remains a tricky process.
initially I had it working without a things file
then it ceased to work
added a thingsfile ->worked again
then it ceased to work again
:slight_smile:
in my paperUI config things it says:
Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR No enum constant org.openhab.binding.wifiled.handler.AbstractWiFiLEDDriver.Protocol.LD741

Reinstalling the binding solved it

Sadly it is a recurring error
This time I noticed after a while that the “Thing” in paper UI had disappeared, added it again… working again

I understand the firmware also caters for timers, not sure whether or not the binding supports those

for those interested… there is a way to control directly from python, be aware that the examples do not all work

I want to use the YL5 Led Controller with this binding. Autodiscovery works and detects the controller. The status is shown online only if I am choosing the Fading mode. On Classic mode, it does not show as online.

The problem is, that the status is not detected and therefore cannot be changed:

08:09:00.321 [ERROR] [rnal.common.AbstractInvocationHandler] - An error occurred while calling method ‘ThingHandler.thingUpdated()’ on ‘org.openhab.binding.wifiled.internal.handler.WiFiLEDHandler@3d505’: null
java.lang.NullPointerException: null
at org.openhab.binding.wifiled.internal.handler.WiFiLEDHandler.dispose(WiFiLEDHandler.java:96) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.thingUpdated(BaseThingHandler.java:206) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh240]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
[…]

	        at org.openhab.binding.wifiled.internal.handler.AbstractWiFiLEDDriver.getLEDState(AbstractWiFiLEDDriver.java:123) ~[?:?]
    ... 65 more

Do you have any idea?

in the LEDState.java file is defined as follows:
public LEDState(int state, int program, int programSpeed, int red, int green, int blue, int white, int white2)

is this correct, that state should be integer? I thought it should be either ON or OFF.

Hi eveyone,

I’m using magic home LED Controllers on my aquarium and they work well. But I have one question that I was hoping I could get some help with. My controller does not have a static ip option and in case of a power failure its ip address can change and openHab loses connection with it as the binding uses the older ip address. One solution to this can be using a router allowing me to bind the mac id to a static ip but my router does not have this option. Can you recommend me an alternative way?

Thank you very much.

Surely you set the static IP address for the LED controller module at your Wifi Router (using the MAC address of the LED controller)?

Then, when you get a power failure, your wifi router allocates the same IP address to the LED controller.

There’s no need for the LED controller to have a ‘static IP option’.

You could just use a Selection Item in your Sitemap like this:

sitemap default label=“Nikos Zimmer”
{
Selection item=LEDStrip_Program label=“Programm” mappings=[
34=“Test”,
36=“CrossFade - Rot/Grün (langsam)”,
37=“Fade - Alle 7”,
38=“Fade - Rot”,
39=“Fade - Grün”,
40=“Fade - Blau”,
41=“Fade - Gelb”,
42=“Fade - Türkis”,
43=“Fade - Lila”,
44=“Fade - Weiß”,
45=“CrossFade - Rot/Grün”,
46=“CrossFade - Rot/Blau”,
47=“CrossFade - Blau/Grün”,
48=“Strobo - Alle”,
49=“Strobo - Rot”,
50=“Strobo - Grün”,
51=“Strobo - Blau”,
52=“Strobo - Gelb”,
53=“Strobo - Türkis”,
54=“Strobo - Lila”,
55=“Strobo - Weiß”,
56=“Jump - Alle”,
57=“Jump - R/G/B (langsam)”,
97=“Farbe”
99=“Jump - R/G/B (schnell)”]
}

Then it looks like this:

This makes it a lot easier and is looking better.

2 Likes

i just wanted to let you know, both Controllers died 2 years later :stuck_out_tongue:
get a better one like this:

https://www.amazon.de/Kontroller-Wireless-LED-Streifen-Fernbedienung-Smartphones/dp/B075X8TJCD/ref=as_li_ss_tl?ie=UTF8&qid=1512596040&sr=8-1&keywords=sunix+rgb&th=1&linkCode=sl1&tag=riotmode-21&linkId=5b2ef364f3d3e225611d6d286a9096b9

1 Like

tnx, i will give that a try

1 Like

I am also having issues with the Magic Home connections.
Does the Sunix controller work with the WifiLED binding?

i do not have any issues with connections, the cheap controllers just died…
the sunix one is still working and YES it works with the LED Binding.
only thing is, you need to switch from LD 382 to LD 686

good luck

Does the fading duration/fading steps works for someone?

I tried to set it to 3 then 5 seconds, but nothing happened, turning on the LED strips is still much faster than that.

Yeah, mine also died (after a few months).