today i got my new MAGIC HOME LED Controller ( 9 USD ) and i want to use it in OpenHAB.
i think this is an LD741 Device
i already installed the WIFI LED Binding in Paper UI but now i am a little bit confused how to set up the device (item/sitemap) - The Manual says:
Usually, there is no need to define your WiFi LED controllers via configuration files.
So how do i set up my led strip to work in openhab ? ( items/sitemap )
Thank you!
PS:
This device should work in OpenHAB. i found this Review on Amazon:
I bought it to integrate with the open source project OpenHAB and it has by far outstripped all my expectations. If your looking to increase your IoT presence in your home don’t over look this!
I’m not sure exactly how it works but the below info got it working for me. Notice in the rule I’m sending a number. I got this number by using the Magic Home app. When I selected a function (in this case a custom one), it updated the item’s status to 96. I then used that number to send the command.
Item
String program "program to run: [%s]" {channel="wifiled:wifiled:db66c6a4:program"}
Switch ptest //dummy item used for testing
Sitemap
Text item=program
rule
rule "Program"
when Item ptest changed
then
program.sendCommand(96)
end
This string item returned the number of the program state. Use the magic app and change the function to whatever you want and the item’s state should update to the corresponding number. Give it a little time (at most 30 seconds) to update in your sitemap. I did find out that no matter how many custom function you create in the app it will always return the same number (96 in my case). So really I can only have one custom function at a time.
String program "program to run: [%s]" {channel="wifiled:wifiled:db66c6a4:program"}
Examples of other numbers I found if this helps:
Green gradual change = 39
red gradual change = 38
Purple strobe flash = 54
////////////////////////////
// LED PRESET RULES
////////////////////////////
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
i have problem with Wifi Led Binding, I added successfully the Thing LED, and controlled it on the Paper UI. But after some minutes i can not controlled it, and it showed this :
Status: OFFLINE - COMMUNICATION_ERROR java.net.NoRouteToHostException: No route to host (Host unreachable)
Hi, I have a couple of these cheap controllers with different firmware versions. One of them, goes offline from time to time while the other remains always online. I can’t find any other difference between them beyond firmware version. I tried to reconnect to my wifi from scratch, change power adaptor and so on, but it always disconnects.
Hi, With Magic Home App i don’t have any problem to control this Led. I must always delete this thing and add it again. But after some minutes it’s again offline
first of all thanks for the help here!
i would like to know how i could update the status of the light?
For example i switch the light on with google home but in basicui or habpanel it says off… do i need to send a string or how could i get the status update?
I have a very simular led strip, maybe just a newer version it’s the AK001-ZJ200, and I was able to use the above to setup and use with mine, but I wanted to create a rule that turned on the strip with a white light, then at say 9 PM change the color to a very low brightness red light so when I get up early in the morning, I can see but it doesn’t keep everyone up. do you know how I can change just the color and or brightness with a rule or something like that? I have those changes in the magic home app and I can do it easily there, but haven’t been able to figure out how to do with rules in my openhab. I do know how to turn it on and off with rules and that is already working, but changing the color and brightness seems to be beyond my abilities.