Hi tried the WiFi LED Binding today and it works very well!
Changing color, brightness, warm white… everything seems to work.
Things
wifiled:wifiled:testLED "test LED" @ "LED" [ ip="192.168.0.***", port=5577, pollingPeriod=5, protocol="LD382A", driver="CLASSIC", fadeDurationInMs=1000, fadeSteps=100 ]
Now I tried to define some default colors in ths sitemap, but this reacts very strange:
sitemap
Switch item=Ledtest_color label="colors" mappings=['255,0,0'='Red', '0,0,255'='Blue', '0,255,0'='Green']
log
2018-04-04 23:08:49.108 [ome.event.ItemCommandEvent] - Item 'Ledtest_color' received command 255,0,0
2018-04-04 23:08:49.135 [vent.ItemStateChangedEvent] - Ledtest_color changed from 0,0,0 to 255,0,0
2018-04-04 23:08:53.919 [vent.ItemStateChangedEvent] - Ledtest_color changed from 255,0,0 to 0,0,0
I also defined some ‘effects’:
sitemap:
Switch item=Ledtest_program label="crossfade" mappings=["45"='Red/Green', "46"='Red/Blue', "47"='Green/Blue']
log (first pressing Red/Blue, then Green/Blue -> leds are first only blue, afterwards only green and brightness is very low)
2018-04-04 23:09:42.055 [ome.event.ItemCommandEvent] - Item 'Ledtest_program' received command 46
2018-04-04 23:09:42.070 [vent.ItemStateChangedEvent] - Ledtest_program changed from 97 to 46
2018-04-04 23:09:45.169 [ome.event.ItemCommandEvent] - Item 'Ledtest_program' received command 47
2018-04-04 23:09:45.183 [vent.ItemStateChangedEvent] - Ledtest_program changed from 46 to 47
2018-04-04 23:09:46.574 [vent.ItemStateChangedEvent] - Ledtest_color changed from 0,0,0 to 120,100,1