I have updated the addon and fixed the offline/online behaviour. Please report back if this works for you all. If there are no further problems, this will be included in the next OH2 addon release. A ready to use jar file can be found here:
Copy the .jar.pdf file to your Raspbian (via ssh or using the desktop directly). I assume you copied it to /home/your_name/org.openhab.binding.milight_2.1.0.ref-rc9.jar.pdf
Remove the .pdf suffix from the file.
Make sure there is a /usr/share/openhab/addons directory, for example with the command ls /usr/share/openhab/addons which should show you a list of installed addons.
Remove the old milight binding from the paperui while OH2 is running.
Copy the new addon while OH2 is running with a command like this: sudo cp /home/your_name/org.openhab.binding.milight_2.1.0.ref-rc9.jar /usr/share/openhab2/addons/. Enter the password.
OH2 needs some seconds to setup the binding. You should find it in the paperui under the Add-ONs section.
i tried your new RC but the Offline issue still exists. Iâm not sure if i made a misstake while configuring my bridge or itâs a problem with your new RC.
Added Milight 6 W RGBWW Bulb to iBox2 Color Group 1
new Binding in /usr/share/openhab2/addons
Searching for new Milight Bridge -> added by ip(Without mac-> when i try to use Mac, the bridge went offline)
All available Things appear in inbox, i add colorgroup1(tried with all other groups too) to my things and try to turn on my bulb , but nothing âŠ
Usually your bridges should be found automatically. You only need to add them manually if you have to cross multiple network hops (like controlling them trough the internet/vpn). But if you add them manually it is essential that you enter the bridge ID (=mac address without colons) and IP address.
If the bridge without an ID appears online, thatâs a bug ^^
I am still getting this when I try to add it via PaperUI (Error 409 Conflict)
I do not have any manual entries in my things.
2017-02-25 08:31:36.782 [ERROR] [home.core.thing.binding.ThingFactory] - Thing factory (class org.openhab.binding.milight.internal.MilightHandlerFactory) returned null on create thing when it reports to support the thing type (milight:bridgeV6).
2017-02-25 08:31:36.787 [WARN ] [g.discovery.internal.PersistentInbox] - Cannot create thing. No binding found that supports creating a thing of type milight:bridgeV6.
When I do add it manually, I get this
2017-02-25 08:43:26.474 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate command âOFFâ for item âLight_GroundfloorNâ to handler for channel âmilight:rgbLed:F0FE6B168FE2:7:nightModeâ, because no thing with the UID âmilight:rgbLed:F0FE6B168FE2:7â could be found.
Unfortunately OH2 gets quite confused if multiple versions of a binding were installed and each had a different schema for things.
Please have a look at the Readme, your Things for the bulbs are using a zone number of 6 and 7 but zones have to be 1-4 or 0 for controlling all bulbs of that type. This is different in how the old milight binding works.
Please donât provide a port if itâs just the default port. And again have a look at the readme, it is CUSTOM_PORT now.
It is now longer the âbridgeâ type but âbridgeV3â or âbridgeV6â.
You can do a lot of things wrong if you specify things manually. PaperUI have to work otherwise OH2 hasnât registered the addon correctly which might happen if there are old fragments of milight data still in the database. Try to open the REST API website and scan through the listed things there and remove everything that is milight related, that is the only solution I can thing of at the moment.
From your screenshot I can tell you that you are not using the latest rc but the old milight addon. That didnât have support for the iBox thatâs why you canât find them .
You didnât remove the jar file of the milight 2.0.0 and 2.1.0 versions from your addons directory.
@David_Graeff You are awesome ! Your hint was right. I was sure i uninstalled the old version but that never happend. Removed RC from /usr/share/openhab2/addons and uninstalled the binding from paperui . Copied the rc to /usr/share/openhab2/addons again and everything worked as expected !
THANK YOU !
EDIT: Iâm not able to switch from an color to white and saturation is not working.
Hi David,
I think my problem is that the directory /usr/share/openhab/addons do not exist on my Raspberry. In fact, in the console by entering the command ls the only voices that appear are âDesktop - Documents - Downloads - Music - oldconffiles - Picturs Public - python_games - Templates - Videosâ.
After downloading the file in the path /home/pi/, removing the suffix .pdf and uninstalled the old binding of Milight, I tried the same to add the command
but nothing happens, not even an error message (the password is not required from the program and nothing on Paper UI). Then I tried to manually add on Raspbian the path /usr/share/openhab/addons (though I do not know if itâs the right method) creating folders directly from folder pi (not from the console), but once inserted the code sudo cp⊠does not happen again nothing, the password is not required from the program and nothing on Paper UI (in this regard, I would like to know by what name appears this update in the Add-ons section of openHAB).
I know it is a problem to be nothing, but I still can not find the solution.
ps. Once added the folders /usr/share/openhab/addons, they appear on the console if I type in the ls code.
Iâm sorry I donât have enough time to solve linux problems in this thread. This is not a problem with the addon, please use another thread in the forum.
Just for you to know: cp never returns any message if the action was successful. Try to reboot (restart OH). Look at the incoming box on paperUI.
Is it a RGBW instead of RGBWW bulb? Then it doesnt have saturation. Please read the readme and the thing description The saturation slider emulates saturation by changing between white and color at a given threshold.
Yeah thatâs true. Its a RGBW Bulb and the saturation is not working. In my understanding, i switch saturation on to get colored light or off to get white light.
EDIT: I found a solution to deactivate colors. { channel=âmilight:rgbwLed:F0FE6B2DC252:1:ledwhitemodeâ}
But i got another question ⊠How can i setup startup color, brightness etc or setup another scene?
Hi @David_Graeff,
thanks for all the help you gave me, I think Iâll open a thread relating to this argument. Let me ask you just one last thing that I am not clear. Once you install this update, with what name appears in the Add-ons section? Milight 2.0.0., Milight_2.1.0.ref-rc9, or with some other name?
More in depth I have not tested later tell. Now I can say, night mode does not work (see log file). The choice of color is shifted, the red and yellow is selected. In paperUI tied animation speed and animation mode, and there is no night mode. What a row (last) in the log file?
Thank you for your work!
Hey thanks for the test. The error message is ok if it still works for you. It just means that the binding lost the connection in between. Nightmode channel is called lednightmode. If this is wrong in the readme I have to correct that.
The color for yellow is off I know that but canât really do anything because I donât have an ibox to calculate a correction function. Most colours should work though.