[SOLVED] WiFI LED Binding - LD741

Could you please follow this topic.? I followed you instruction from a previous post…

after i pasted this I lost the control o led and i cant even turn ON or OFF the LED strip

//Light Program
Group LEDLight <light> // RGB-Strip-Presets Group

String LED_1_program      "LED 1 Preset [MAP(led_preset.map):%s]"    <menu>        {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
rule SetDay
when
  System started or
  Time is midnight
then
  Today.postUpdate(new DateTimeType())
end

rule "Program - Strobe"
when Item LED_1_preset_0 received command ON
then
LED_1_program.sendCommand(48)
end

rule "Program - Strobe - Custom 1"
when Item LED_1_preset_1 received command ON
then
LED_1_program.sendCommand(96)
end

rule "Program - Strobe - Rot"
when Item LED_1_preset_2 received command ON
then
LED_1_program.sendCommand(49)
end

rule "Program - Strobe - Grün"
when Item LED_1_preset_3 received command ON
then
LED_1_program.sendCommand(50)
end

rule "Program - Strobe - Blau"
when Item LED_1_preset_4 received command ON
then
LED_1_program.sendCommand(51)
end

rule "Program - Strobe - Cyan"
when Item LED_1_preset_5 received command ON
then
LED_1_program.sendCommand(53)
end

rule "Program - Strobe - Lila"
when Item LED_1_preset_6 received command ON
then
LED_1_program.sendCommand(54)
end

rule "Program - Strobe - Gelb"
when Item LED_1_preset_7 received command ON
then
LED_1_program.sendCommand(52)
end

rule "Program - Strobe - Weiß"
when Item LED_1_preset_8 received command ON
then
LED_1_program.sendCommand(55)
end

rule "Program - R/G/B"
when Item LED_1_preset_9 received command ON
then
LED_1_program.sendCommand(57)
end

rule "Program - CrossFade - Rot/Grün"
when Item LED_1_preset_10 received command ON
then
LED_1_program.sendCommand(45)
end

rule "Program - CrossFade - Rot/Blau"
when Item LED_1_preset_11 received command ON
then
LED_1_program.sendCommand(46)
end

rule "Program - CrossFade - Blau/Grün"
when Item LED_1_preset_12 received command ON
then
LED_1_program.sendCommand(47)
end

rule "Program - Fade"
when Item LED_1_preset_13 received command ON
then
LED_1_program.sendCommand(37)
end

rule "Program - Fade - Weiß"
when Item LED_1_preset_14 received command ON
then
LED_1_program.sendCommand(44)
end

rule "Program - Fade - Grün"
when Item LED_1_preset_15 received command ON
then
LED_1_program.sendCommand(39)
end

rule "Program - Fade - Dunkelblau"
when Item LED_1_preset_16 received command ON
then
LED_1_program.sendCommand(40)
end

rule "Program - Fade - Gelb"
when Item LED_1_preset_17 received command ON
then
LED_1_program.sendCommand(41)
end

rule "Program - Fade - Rot"
when Item LED_1_preset_18 received command ON
then
LED_1_program.sendCommand(38)
end

rule "Program - Fade - Hellblau"
when Item LED_1_preset_19 received command ON
then
LED_1_program.sendCommand(42)
end

rule "Program - Fade - Lila"
when Item LED_1_preset_20 received command ON
then
LED_1_program.sendCommand(43)
end

rule "Program - Fade - R/G/B"
when Item LED_1_preset_21 received command ON
then
LED_1_program.sendCommand(45)
end

rule "Program - Jump"
when Item LED_1_preset_22 received command ON
then
LED_1_program.sendCommand(56)
end

rule "Program - Jump - R/G/B"
when Item LED_1_preset_23 received command ON
then
LED_1_program.sendCommand(99)
end
sitemap jackshome label="Jacks-Smarthome"
{

  Frame label="Today"
 {
    Text item=Today label="Today [%1$tA]"
    Text item=Today label="The Date is [%1$td/%1$tm/%1$tY]"
    Text item=Today label="The time is [%1$tH:%1$tM]"
  }
    
  Frame label="My South West Room"
  {
   Switch item=LEDTB
   Switch item=PSRBSTR
   Switch item=BDLT
   Switch item=PLUG
  }
Frame label="Climate@Home"
{
Text item=yahooweather_weather_3c28492b_temperature
Text item=yahooweather_weather_3c28492b_humidity
Text item=yahooweather_weather_3c28492b_pressure
}
Frame label="My Room"
{
     Text item=Temperature
     Text item=Humidity
Colorpicker item=MyWiFiLight_color
Switch item=MyWiFiLight_power
Slider item=MyWiFiLight_white

  Text item=LED_1_program
    Switch item=LED_1_preset_0
    Switch item=LED_1_preset_1
    Switch item=LED_1_preset_2
    Switch item=LED_1_preset_3
    Switch item=LED_1_preset_4
    Switch item=LED_1_preset_5
    Switch item=LED_1_preset_6
    Switch item=LED_1_preset_7
    Switch item=LED_1_preset_8
    Switch item=LED_1_preset_9
    Switch item=LED_1_preset_10
    Switch item=LED_1_preset_11
    Switch item=LED_1_preset_12
    Switch item=LED_1_preset_13
    Switch item=LED_1_preset_14
    Switch item=LED_1_preset_15
    Switch item=LED_1_preset_16
    Switch item=LED_1_preset_17
    Switch item=LED_1_preset_18
    Switch item=LED_1_preset_19
    Switch item=LED_1_preset_20
    Switch item=LED_1_preset_21
    Switch item=LED_1_preset_22
    Switch item=LED_1_preset_23
}
}

this is error I’m getting

java.io.FileNotFoundException: /etc/openhab2/transform/led_preset.map (No such file or directory)

at java.io.FileInputStream.open0(Native Method) ~[?:?]

at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?]

at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[?:?]

at java.io.FileInputStream.<init>(FileInputStream.java:93) ~[?:?]

at java.io.FileReader.<init>(FileReader.java:58) ~[?:?]

at org.eclipse.smarthome.transform.map.internal.MapTransformationService.internalLoadTransform(MapTransformationService.java:62) ~[?:?]

... 61 more

I created the led_preset.map file, but still the programs are not working. Also 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.

you named your device “MyWiFiLight_…” and you change “LED_1_program” in your rules, this cant work

change your LED Controller Name in your items file to the corresponding name of your rule.
as i can see in your thread, you named it the way i did in the beginning (MyWiFiLight_power) you need to change it to "LED_1_power " and so on

try my final items file


Group LEDPresets1 "LED 1 Presets" <colorwheel> (OG_Office) // RGB-Presets 1

////////////////////////////
// LED STRIP 1
////////////////////////////

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

/////////// MODE Switches

String LED_1_program      "LED 1 Preset [MAP(led_preset.map):%s]"    <menu>         (LEDPresets1,OG_Office)  {channel="wifiled:wifiled:A020A61D34BE: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

good luck

1 Like

Greetings,
Are these devices reliable to use for long time ?

I tried as per your instructio as follows but not working

Group LEDPresets1 "LED 1 Presets" <colorwheel> (OG_Office) // RGB-Presets 1

////////////////////////////
// LED STRIP 1
////////////////////////////

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

/////////// MODE Switches

String LED_1_program      "LED 1 Preset [MAP(led_preset.map):%s]"    <menu>         (LEDPresets1,OG_Office)  {channel="wifiled:wifiled:A020A61D34BE: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
rule "Program - Strobe"
when Item LED_1_preset_0 received command ON
then
LED_1_program.sendCommand(48)
end

rule "Program - Strobe - Custom 1"
when Item LED_1_preset_1 received command ON
then
LED_1_program.sendCommand(96)
end

rule "Program - Strobe - Rot"
when Item LED_1_preset_2 received command ON
then
LED_1_program.sendCommand(49)
end

rule "Program - Strobe - Grün"
when Item LED_1_preset_3 received command ON
then
LED_1_program.sendCommand(50)
end

rule "Program - Strobe - Blau"
when Item LED_1_preset_4 received command ON
then
LED_1_program.sendCommand(51)
end

rule "Program - Strobe - Cyan"
when Item LED_1_preset_5 received command ON
then
LED_1_program.sendCommand(53)
end

rule "Program - Strobe - Lila"
when Item LED_1_preset_6 received command ON
then
LED_1_program.sendCommand(54)
end

rule "Program - Strobe - Gelb"
when Item LED_1_preset_7 received command ON
then
LED_1_program.sendCommand(52)
end

rule "Program - Strobe - Weiß"
when Item LED_1_preset_8 received command ON
then
LED_1_program.sendCommand(55)
end

rule "Program - R/G/B"
when Item LED_1_preset_9 received command ON
then
LED_1_program.sendCommand(57)
end

rule "Program - CrossFade - Rot/Grün"
when Item LED_1_preset_10 received command ON
then
LED_1_program.sendCommand(45)
end

rule "Program - CrossFade - Rot/Blau"
when Item LED_1_preset_11 received command ON
then
LED_1_program.sendCommand(46)
end

rule "Program - CrossFade - Blau/Grün"
when Item LED_1_preset_12 received command ON
then
LED_1_program.sendCommand(47)
end

rule "Program - Fade"
when Item LED_1_preset_13 received command ON
then
LED_1_program.sendCommand(37)
end

rule "Program - Fade - Weiß"
when Item LED_1_preset_14 received command ON
then
LED_1_program.sendCommand(44)
end

rule "Program - Fade - Grün"
when Item LED_1_preset_15 received command ON
then
LED_1_program.sendCommand(39)
end

rule "Program - Fade - Dunkelblau"
when Item LED_1_preset_16 received command ON
then
LED_1_program.sendCommand(40)
end

rule "Program - Fade - Gelb"
when Item LED_1_preset_17 received command ON
then
LED_1_program.sendCommand(41)
end

rule "Program - Fade - Rot"
when Item LED_1_preset_18 received command ON
then
LED_1_program.sendCommand(38)
end

rule "Program - Fade - Hellblau"
when Item LED_1_preset_19 received command ON
then
LED_1_program.sendCommand(42)
end

rule "Program - Fade - Lila"
when Item LED_1_preset_20 received command ON
then
LED_1_program.sendCommand(43)
end

rule "Program - Fade - R/G/B"
when Item LED_1_preset_21 received command ON
then
LED_1_program.sendCommand(45)
end

rule "Program - Jump"
when Item LED_1_preset_22 received command ON
then
LED_1_program.sendCommand(56)
end

rule "Program - Jump - R/G/B"
when Item LED_1_preset_23 received command ON
then
LED_1_program.sendCommand(99)
end
sitemap jackshome label="Jacks-Smarthome"
{

  Frame label="Today"
 {
    Text item=Today label="Today [%1$tA]"
    Text item=Today label="The Date is [%1$td/%1$tm/%1$tY]"
    Text item=Today label="The time is [%1$tH:%1$tM]"
  }
    
  Frame label="My South West Room"
  {
   Switch item=LEDTB
   Switch item=PSRBSTR
   Switch item=BDLT
   Switch item=PLUG
  }
Frame label="Climate@Home"
{
Text item=yahooweather_weather_3c28492b_temperature
Text item=yahooweather_weather_3c28492b_humidity
Text item=yahooweather_weather_3c28492b_pressure
}
Frame label="My Room"
{
     Text item=Temperature
     Text item=Humidity
Colorpicker item=LED_1_color
Switch item=LED_1_power
Slider item=LED_1_white

Text item=LED_1_program
    Switch item=LED_1_preset_0
    Switch item=LED_1_preset_1
    Switch item=LED_1_preset_2
    Switch item=LED_1_preset_3
    Switch item=LED_1_preset_4
    Switch item=LED_1_preset_5
    Switch item=LED_1_preset_6
    Switch item=LED_1_preset_7
    Switch item=LED_1_preset_8
    Switch item=LED_1_preset_9
    Switch item=LED_1_preset_10
    Switch item=LED_1_preset_11
    Switch item=LED_1_preset_12
    Switch item=LED_1_preset_13
    Switch item=LED_1_preset_14
    Switch item=LED_1_preset_15
    Switch item=LED_1_preset_16
    Switch item=LED_1_preset_17
    Switch item=LED_1_preset_18
    Switch item=LED_1_preset_19
    Switch item=LED_1_preset_20
    Switch item=LED_1_preset_21
    Switch item=LED_1_preset_22
    Switch item=LED_1_preset_23
}
}

led_preset.map file as follows

//
48=Strobe
96=Strobe - Custom 1
49=Strobe - Rot
50=Strobe - Grün
51=Strobe - Blau
53=Strobe - Cyan
54=Strobe - Lila
52=Strobe - Gelb
55=Strobe - Weiß
57=Strobe - R/G/B
45=CrossFade - Rot/Grün
46=CrossFade - Rot/Blau
47=CrossFade - Blau/Grün
37=Fade
44=Fade - Weiß
39=Fade - Grün
40=Fade - Dunkelblau
41=Fade - Gelb
38=Fade - Rot
42=Fade - Hellblau
43=Fade - Lila
45=Fade - R/G/B
56=Jump
99=Jump - R/G/B
97=Farbe (kein Preset gewählt) 

@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