I´m still struggeling with my milight RGW bulb. I can controll my bulb with the remote and app but not with opneHAB. Here are some informations about the configuration:
Hi. I had similar problem. I bought RGBW bulbs and wifi bridge few weeks ago. It seems that wifi bridge had API v 5.0 and it didn’t work correct with openhab using existing version of milight binding, but worked fine with mobile app. So, I sniffered the traffic with tcpdump on my openhab server (running on bananapi), then, sniffered the traffic of my smartphone (generated by the official milight app while controlling bulbs) with free wireshark-like app for android, looked through it, then looked through the api at http://www.limitlessled.com/dev/ and saw that only mobile app sends correct commands, according to API v5.0. Then I started to send custom commands (according to API v5.0) to milight bridge using sendip command (see https://moythreads.com/wordpress/2012/03/15/sending-udp-packets-from-the-command-line/) and had success - I managed to control all bulb parameters. Then I wrote bash scripts for bulbs control and integrated them into openhab using exec binding.
Sure, it isn’t the best solution, but at least, it works and it’s usefull for debugging.
I plan to write to milight binding authors about this issue.
Sorry for my English
@strelok1986
I had a look at the API description but did not find any different codes for the V5 bridge.
Am I blind ? Where exactly did you find the codes ??
I also have openhab with milight binding, but android led app works much smoother than openhab milight binding. If i want to change color, sometimes it isn´t working. With android app it switches very smooth when moving the finger. With openhab sometimes it works, sometimes color isn´t changing.
I have the latest version of the controller, using it with 3 milight led bulbs.
I have a very similar situation, so continuing this thread rather than starting a new one. Would really appreciate anyone’s help here. I’m anxious to get this working so I can go out and buy some more lights!
I have a Milight 4-zone wireless LED dimmer connected to an LED strip. It’s synced to my mi-light app on my phone and the battery operated remote control. Both can dim successfully on channel 1. However, I can’t get openhab to do the same.
I am running raspberry pi 2 with openhab 1.8 and the milight 1.8 binding. My milight hub is plugged into one of the USB ports of the pi. My java version is
java version "1.8.0"
Java™ SE Runtime Environment (build 1.8.0-b132)
Java HotSpot™ Client VM (build 25.0-b70, mixed mode)
I don’t know which version of the milight bridge (is there a way to tell?) but I’ve tried both ports 50000 and 8899 without success. I’ve also tried using the IP address of the raspberry pi along with the only other DHCP listing which I didn’t recognise and therefore assumed belong to the milight. Its hostname is AUD-R9010ZM4 with MAC address of 7c:7a:91:a2:dc:5d.
I think it’s white only as the outputs are just + and -. There’s no separate outputs for R,G and B, which I assume it would need. I’ll try channels 5-9, see if it works and report back.
Checking back in with an update. I tried changing the items to Channel 5 (all RGB). I can see the change in the log file, but it did not adjust the actual lights.
2016-02-03 19:48:35 - milight: item is of type brightness
2016-02-03 19:48:35 - milight: sendOn
2016-02-03 19:48:35 - milight: messageBytes to transform: ‘22:00:55’
2016-02-03 19:48:35 - Sent packet ‘22:00:55’ to bridge ‘MilightHub’ (192.168.1.13:8899)
2016-02-03 19:48:48 - milight: item is of type brightness
2016-02-03 19:48:48 - milight: sendOff
2016-02-03 19:48:48 - milight: messageBytes to transform: ‘21:00:55’
2016-02-03 19:48:48 - Sent packet ‘21:00:55’ to bridge ‘MilightHub’ (192.168.1.13:8899)
I’ve attached photos of my Milight bridge and the wireless dimmer unit, in case that helps diagnose the problem. Sorry about the orientation of the photos!
I tried turning on “trace” level logging to see if it gave any additional info, but it didn’t, so I’ve got no further info to add. If you have any ideas to either solve or to help diagnose, I’d love to hear them.
Ok, it’s quite easy, this is not a milight bridge, so it is not supported by the binding and won’t be.
If I remember right, there was a post about led stripe controllers, you could try that.