[SOLVED] WiFI LED Binding - LD741

its called HSV/HSB Value:

check this out here:
http://colorizer.org/

the site is a bit complicated at the beginning, but a great color-tool for values

1 Like

LOL that would have been super helpful… after I figured out the numbers I went through and changed it like every 10-20 just writing down what each one of them were…

everythings nearly fine, I am missing the MAP(led_preset.map).

Could you please provide your definition here?

THX

here you have:

//
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) 

would love to see some “LOVE” for my posts :smile: :blush:

14 Likes

Awesome, thank you!

1 Like

Hey Guys so I got my Magic Home LED Controllers up and running thanks to these great posts!

I have one question that I was hoping I could get some help with, however.

I’m following along this post detailing a Wake rule where the brightness increments by 1% every minute the first ten minutes, then 10% every minute after that. Link here:https://community.openhab.org/t/yet-another-wakeup-light-rule/41941

So I’ve modified it to simply go 10% every minute with our LED Controllers, the problem is - they don’t seem to have a direct “Brightness” item. Of course you could raise the brightness by changing the third value in the HSV syntax (i.e. (320,100,10) to (320,100,20) to (320,100,30), etc…) but I’m not sure how to change just one part of this 3 number value. Simply plopping a variable into that position like you’d expect in most programming does not seem to work.

— removed original not working code ----

Also don’t worry that my color value (324,100,x) does not seem to be blue. My controllers both somehow got their colors all pushed off by about 30% or like 1/3 ways around the color wheel, so my greens = red, etc. experimentally I’ve found 324,100,x is just the right blue for me :slight_smile:

Thanks!

EDIT: Solved

If anyone is interested, heres my final working code:

var Timer wakeUpTimer = null
var Number dimmer = 0
var Number dimmer_step = 5
var String color = ""

rule "Wakeup LED 1 Morning Blue"
    when
        Time cron "0 55 20 * * ?" 
    then
        logInfo("WakeUp", "WakeUp started")
        dimmer = 0
        wakeUpTimer = createTimer(now.plusSeconds(1), [|
                if(dimmer >= 100) {
                        logInfo("WakeUp", "WakeUp ended")
                        dimmer = 0
                        dimmer_step = 3
                        LED1Power.sendCommand(OFF)
                        wakeUpTimer = null
                } else {
                        dimmer += dimmer_step
                        logInfo("WakeUp", "WakeUp step: " + color)
                        color = "324,100," + dimmer.toString
                        LED1Color.sendCommand(color)
                        LED2Color.sendCommand(color)
                        wakeUpTimer.reschedule(now.plusSeconds(20))
                }
        ])
end

My problem is a much more general one with these LED Controllers. The color it display is about 30% off of the values I input, whether through the color wheel in the basic UI, color slider in Paper UI, REST API HSV Values, etc, no matter how I input it, the wrong color comes out. It is manageable if you calculate that you have to enter ~30% higher color value, but its super annoying.

I thought I read you can reset these through some power cycling pattern. Does anyone know exactly how to reset these controllers?

Thanks!

Hi,

i also use that Sunix® LED RGB Controller. I have created the items and the sitemap according to this guide.
Everything works fine except to statically set the color.
With the colorpicker item I can switch the light on and off. The color settings but it does not take. :disappointed_relieved:
any ideas?
Thanks!

what does your PaperUI say ? ( look screenshot )
PaperUI -> Configurations -> Things

do you use the correct name ?

without not knowing your setup/config , its hard to help… sorry

Thank you for your prompt reply :grinning:

PaperUI

Items

Switch LED_Buero_power "Power-LED" <light> [ "Lighting" ] {channel="wifiled:wifiled:F0FE6BA6C812:power"}
Dimmer LED_Buero_white "White-LED" <light> [ "Lighting" ] {channel="wifiled:wifiled:F0FE6BA6C812:white"}
Color  LED_Buero_color "Color-LED" [ "Lighting" ] {channel="wifiled:wifiled:F0FE6BA6C812:color"}
Dimmer LED_Buero_speed  "Speed_LED" <light> [ "Lighting" ] {channel="wifiled:wifiled:F0FE6BA6C812:programSpeed"}

And the Sitemap

Frame label="Buero" {
Text label="LED Stripe" icon="colorwheel"{
        Colorpicker item=LED_Buero_color icon="colorwheel"
        Switch item=LED_Buero_power icon="light"
        Slider item=LED_Buero_white icon="light"
        Slider item=LED_Buero_white2 icon="light"
        Slider item=LED_Buero_speed

The Connection to Google Home works to. Only the color change does not work.

looks good to me - hmmm, try restarting your system maybe

when you change your color in openhab, what is happening in the MagicHome App - do you see the color change in the app ? ( you need to refresh by swiping down the screen )

for me, i can see the change from openhab in the iphone app

and its for sure a RGB Strip ? :smiley:

Hey @RiotMode,

Thanks for so many great posts with a lot of help so far!
Do you think this RGB driver / Controller that this setup is using is one of them that are able to be controlled by openHab?

1 Like

hey @Yoinkz its hard to tell from the ebay description, but i think yes it should be possible
look for the same product elsewhere and keep an eye out for LD686 or something at least with LD…
then you are fine

see this here:
https://docs.openhab.org/addons/bindings/wifiled/readme.html

Hey @RiotMode,

Thanks for getting back to me. I wrote a message to the seller and asked if this device was a LDXXX type, but the response I got, didn’t say anything else than this?

Hi my friend,
thank you for your contact,This item is using Smart WiFi Control,The LED Chips is SMD5050,Hope this can help you,if you have any questions,please feel free contact us,thank you.Looking forward to your orders.
Have a nice day.
Best Regards.

Does that help in any way?

EDIT: Well - I clicked BUY - so lets see what happens when we fire it up :).

No, of course not.
SMD 5050 is the LED type on the strips which are powered from the controller (There are digital LED strips too WS2812b for example)
Just buy Arilux AL-CO1 works like a charm, about 6$.
They have a ESP8266 in, so a lightweight TCP/IP stack.
Hope this helps

Hey Nico,
Which one do you use - I found this one that also supports Cold and Warm white which I would like to be able to.

Do you have any good experience with some LED strips that supports the full RGB spectrum + the cold and warm white? Of course it needs to be able to interact with the controller found as well.
Also, what power supply did you buy for the device?

@RiotMode What about the controller you bought - does that one support cold and warm white?

Hey yoinkz,
I Just used Arilux ALC01, They are limited to RGB but they’ve always worked like a charm.
U need to flash them if you want to fully controll it all by yourself.
If not, you can just use the WIFI LED binding and go with those preconfigured commands.
Works pretty good except for some minor details

i just did excatly as you said, i can Turn ON and Turn OFF the led strip,but i can’t control the brightness or colour of the LED strip.

hey - pls post your config so we can help you out

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