dotsam / homebridge-milight

MiLight/LimitlessLED/Easybulb Plugin for Homebridge
MIT License
63 stars 12 forks source link

Unable to use basic and complex functions on my LED strip #22

Open Drnktxt opened 7 years ago

Drnktxt commented 7 years ago

I've got a MiLight Bridge V2/3, not exactly sure which version I'm running. But I've tried both versions nonetheless in the json file.

I've got the exact same bridge as in the picture that is linked. https://community-openhab-org.s3-eu-central-1.amazonaws.com/optimized/2X/f/ffcd0d3f739b14a13b217be350b6329154795a42_1_473x300.jpg

I'm able to use the mobile iOS app, using the second remote and it'll handle requests just fine. But for some annoying reason I just can't get this thing to work with my homebridge installation.

So far I've tried several changes in the JSON file but none seem to do the trick, even my great Google skills seem to fall short. http://www.justfuckinggoogleit.com/

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },

    "platforms": [
        {
            "platform":"MiLight",
            "name":"MiLight",
            "bridges": [
              {
                "ip_address": "10.0.0.100",
                "version": "v3",
                "lights": {"rgbw": ["Bathroom LED"]},
                "repeat": 1,
                "delay": 100
              }

            ]
        }
]

}

By changing the "RGBW" to "RGB", and adding port 8899 to the bridge I am somewhat able to control the colors, but it won't let me select white as an option as it only goes through the color-spectrum without white.

Can anyone provide me with information regarding this issue, or even better help me fix this darn thing?

Yours truly,

Drnktxt

dotsam commented 7 years ago

Are you able to change your LED strip to white using the LimitlessLED iOS app? If your LED strip controller only works with the 2nd page/"rgb" mode of the Homebridge plugin, then I don't believe it can output white, and this is a hardware limitation of the controller, not anything on the software side.

Drnktxt commented 7 years ago

@dotsam I've just tried to get white light using the MiLight iOS app.

There is no proper button to get to white using the colorful dial as it is on the remote. The workaround I used in order to set my RGBW ledstrip is to press a random color, then tap the "partymode"/program button once in order to get warm white.

This action can be both reproduced in the app and the remote.

PS: So far the software is really good. And I'm pretty sure it will work to my satisfaction eventually.

dotsam commented 7 years ago

Hi @Drnktxt

Can you find a picture of the LED strip controller and the remote that you have? Since you can get the strip in to white mode via the app, that should also mean I can do it with the plugin. I'll have a look and see if I can get this implemented at some point.

Drnktxt commented 7 years ago

Remote and controller

These are the exact same as the ones I have.

Drnktxt commented 7 years ago

@dotsam anything yet?

DasPflanze commented 7 years ago

Try the fullColor mode, this is the only way i'm able to get my 2 RGB-Controller working. With this mode it is also possible to set the LEDs to white.

Drnktxt commented 7 years ago

I've tried the fullColor mode, unfortunately it gives the error below.

homebridge API version: 2.1
[2/20/2017, 4:03:04 PM] Registering accessory 'homebridge-magichome.MagicHome'
[2/20/2017, 4:03:04 PM] ---
[2/20/2017, 4:03:05 PM] Loaded plugin: homebridge-milight
[2/20/2017, 4:03:05 PM] Registering platform 'homebridge-milight.MiLight'
[2/20/2017, 4:03:05 PM] ---
[2/20/2017, 4:03:05 PM] Loaded config.json with 0 accessories and 1 platforms.
[2/20/2017, 4:03:05 PM] ---
[2/20/2017, 4:03:05 PM] Loading 1 platforms...
[2/20/2017, 4:03:05 PM] [MiLight] Initializing MiLight platform...
[2/20/2017, 4:03:05 PM] [MiLight] fullColor bulb type only avaliable with v6 bridge!
[2/20/2017, 4:03:05 PM] [MiLight] Unable to find any valid lights.

Since I do not have a V6 bridge nor compliant light bulbs it fails upon loading. @DasPflanze Thank you for your contribution nonetheless. @dotsam Have you made any headway with this problem by chance?

Yours,

Drnktxt

dotsam commented 7 years ago

I found the manual for the controller you have (http://www.futlight.com/productdetails.aspx?id=199&typeid=146&filepath=/ResumeInfo/FUT027.pdf) and it looks like white mode is actually "program 2".

Can you let me know how you can get back to a colour using the MiLight app? Do you just pick one from the colour wheel, or do you have to press "Program -"?

Drnktxt commented 7 years ago

@dotsam Sorry for the belated reply. I've been swamped with my thesis, and haven't been able to get around sooner. My Milight analog-2.4Ghz controller is the exact same as displayed. In order for me to set the colour to it's proper white for I need to press the function-button 9. Mode+.

To my knowledge, and due to extensive testing I can conclude that I can only set the led to white if I follow these steps.

  1. Set a (random) colour by pressing the colour wheel on the remote
  2. Press the "#9 Mode+" button in order for the led to turn warm white

The remote and/or led controller won't turn back to white if one continues pressing the mode+/- buttons.

Yours,

Drnktxt

toshibochan commented 7 years ago

if you hold the ON button on the remote will turn on on white

toshibochan commented 7 years ago

try "ip_address": "10.0.0.100", "lights": {"rgbw": ["Bathroom LED"]}, "repeat": 3, "delay": 80

HonzaaD commented 7 years ago

I have same problem :( I have this controller RGBW FUT027 http://www.futlight.com/productdetails.aspx?id=199

Controller

And WiFi iBox1 (MID: HF-LPB100, SW: V1.0.08, Web Ver: 1.0.14) http://www.futlight.com/productdetails.aspx?id=235

I choose my remote in iOS app Mi-Light 3.0 https://itunes.apple.com/us/app/mi-light-3-0/id1156007632

Remote

everything works well and "lights": {"bridge": ["iBox"]} works fine, but "lights": {"rgbw": ["FUT027"]} does not work.. :( any idea?

craigstanton commented 6 years ago

I think I am in the same situation as other users here. I have the bridge that @Drnktxt linked to in the original question and it works find for controlling four RGBW bulbs. I'm now trying to add RGB strips. They came with a similar remote and controller to those @HonzaaD showed, except the wires out are V+,R,G, and B.

I am able to control the strips using this remote panel within the Milight app, so I know the wifi bridge is compatible, but I can't figure out the changes I need in config.json. I'm prepared to abandon the bulbs if I can get the strips to work.

img_592b59f7c56a-1

Current config.json

"platforms": [ { "platform":"MiLight", "name":"MiLight", "bridges": [ { "ip_address": "192.168.20.11", "version": "v4", "lights": { "rgbw": ["Living Room", "light 2", "light 3", "light 4"] }, "repeat": 1, "delay": 100 } ] }

Drnktxt commented 6 years ago

As I recently purchased a dedicated HP Proliant DL160G6, I instantly created a Hyper-V instance running Ubuntu Server 18.04, obviously running HomeBridge, in order to revisit this thread and see if I can get the dedicated white color to work.

Some backstory leading into it, at some point in early 2016 I moved into my new house, using a mismatch of routers to serve as APs and switches in order to ascertain some sort of stable connection throughout the house. However, in early 2017 I completely overhauled my network, using the Unifi line from Ubiquiti. I went way overboard for some inhouse connectivity, however this way I can guarantee a great signal throughout the house.

Setting up the MiLight V3 Bridge with my iPhone X was a pain in the ass, as I couldn't get the webpage to load using the internal "Mi-Light Router' IP @ 10.10.100.254 using my phone's web browser. For some odd reason iOS wouldn't show the login screen. This was resolved using a laptop running Windows and I could get it to work, and incorporate it in my newly existing network. After setting up homeBridge on my dedicated Linux server I revisited this thread to copy/paste my initial script into the config.json, in order to find out that it still wouldn't function. Using @toshibochan 's edit didn't do any much different, but homebridge posted some error messages. Initially, when I started this thread back February 2017, I figured this could be accounted to the hardware limitation of the Raspberry Pi 2B. However, as I am currently running a beast of a server (2x6Core Intel Xeon L5640 2.26 Ghz with 64GB DDR3 ECC RAM) the formerly described issue still persists. Now that hardware limitations are out of the way I focused a bit more attention to the bridge itself. Eventually I concluded the V3 WiFi-bridge is fine, it's crap, but it works fine (sort of). @craigstanton Your bridge is fine. The controller however is another story. The controller used by @HonzaaD is primarily the same, however, it still uses the RBG remote, unlike the updated RGBW remote. Hence I'm able to conclude as @dotsam said it is not a software limitation, but it's a hardware limitation. Primarily the controller/remote combo. Resolving any issues with warm-white and homebridge in combination with the homebridge-milight package can be done by swapping out the controller, with an updated version of the controller/remote combination. Another route to take is to get a fully white-spectrum+RGB compatible ledstrip and bulbs in combination with an updated controller.

I hope this helps, if not, too bad. However, as I have got it set-up again, I might revisit this in the next few weeks in order to see if I can set a function to incorporate #9 as a dedicated switch, to be used by Siri.

Good luck.

Yours truly,

Drnktxt

HonzaaD commented 6 years ago

Yes,

set up..

"lights": {"rgb": ["FUT027"]},

is half-funcional... :(

I can TurnOn/Off and Dimming, but cant change color. After click color ring, color set blue... :(

toshibochan commented 6 years ago

Set to rgbw

HonzaaD commented 6 years ago

When I set RGBW, the FUT027 does not work at all. :(

toshibochan commented 6 years ago

your controller is single zone! I don't think single zone controller work in this.

HonzaaD commented 6 years ago

Damn, pity, great pity .. :(