dotsam / homebridge-milight

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

New Milight controller #10

Closed cis2131 closed 7 years ago

cis2131 commented 7 years ago

Does this works with the new milight controller.

http://www.milight.com/milight-wifi-receiver-bridge-3-0-controller-box/

Claus

dotsam commented 7 years ago

@zuroph I'll have to take a look at some of the logic I was using to work around some issues with setting the saturation of the RGBW bulbs and see how it should be working with the full colour bulbs.

dotsam commented 7 years ago

@zuroph Can you confirm you're on the latest release of the plugin, and what kind of bulbs and bridge you have? I believe you have a v6 bridge with RGBW bulbs? I can't replicate this with a v5 bridge and RGBW bulbs, and I don't think anything should have changed on the v5 bridge in relation to this. Can you provide homebridge logs for when this happens?

samsonrosen commented 7 years ago

Hey @dotsam, I love the work. Just wanted to share some similar bugs to @zuroph.

I'm using a V6 Bridge with an RGBW bulb. I've attached a video of some colour issues I find. Split Screen.m4v.zip

[1/22/2017, 8:12:28 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:28 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:28 PM] [MiLight] [Light] Setting brightness to 100
[1/22/2017, 8:12:43 PM] [MiLight] [Light] Setting power state to off
[1/22/2017, 8:12:46 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting brightness to 67
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting brightness to 54
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:52 PM] [MiLight] [Light] Setting brightness to 53
[1/22/2017, 8:12:54 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:54 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:54 PM] [MiLight] [Light] Setting brightness to 93
[1/22/2017, 8:12:54 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:54 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:54 PM] [MiLight] [Light] Setting brightness to 100
[1/22/2017, 8:12:58 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:58 PM] [MiLight] [Light] Setting hue to 255
[1/22/2017, 8:12:58 PM] [MiLight] [Light] Saturation is 0, making sure bulb is in white mode
[1/22/2017, 8:12:58 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:12:58 PM] [MiLight] [Light] Saturation set to 68, but hue is not 0, resetting hue
[1/22/2017, 8:13:06 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:06 PM] [MiLight] [Light] Setting hue to 30
[1/22/2017, 8:13:06 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:06 PM] [MiLight] [Light] Saturation set to 67, but hue is not 0, resetting hue
[1/22/2017, 8:13:10 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:10 PM] [MiLight] [Light] Setting hue to 255
[1/22/2017, 8:13:10 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:10 PM] [MiLight] [Light] Saturation set to 68, but hue is not 0, resetting hue
[1/22/2017, 8:13:13 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:13 PM] [MiLight] [Light] Setting hue to 251
[1/22/2017, 8:13:13 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:13 PM] [MiLight] [Light] Saturation set to 5, but hue is not 0, resetting hue
[1/22/2017, 8:13:17 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:17 PM] [MiLight] [Light] Setting hue to 28
[1/22/2017, 8:13:17 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:17 PM] [MiLight] [Light] Saturation set to 23, but hue is not 0, resetting hue
[1/22/2017, 8:13:19 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:19 PM] [MiLight] [Light] Setting hue to 251
[1/22/2017, 8:13:19 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:19 PM] [MiLight] [Light] Saturation set to 5, but hue is not 0, resetting hue
[1/22/2017, 8:13:25 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:25 PM] [MiLight] [Light] Setting hue to 0
[1/22/2017, 8:13:25 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:25 PM] [MiLight] [Light] Saturation set to 0, setting bulb to white
[1/22/2017, 8:13:31 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:31 PM] [MiLight] [Light] Setting hue to 255
[1/22/2017, 8:13:31 PM] [MiLight] [Light] Saturation is 0, making sure bulb is in white mode
[1/22/2017, 8:13:31 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:31 PM] [MiLight] [Light] Saturation set to 68, but hue is not 0, resetting hue
[1/22/2017, 8:13:34 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:34 PM] [MiLight] [Light] Setting hue to 30
[1/22/2017, 8:13:34 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:34 PM] [MiLight] [Light] Saturation set to 67, but hue is not 0, resetting hue
[1/22/2017, 8:13:37 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:37 PM] [MiLight] [Light] Setting hue to 251
[1/22/2017, 8:13:37 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:37 PM] [MiLight] [Light] Saturation set to 5, but hue is not 0, resetting hue
[1/22/2017, 8:13:39 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:39 PM] [MiLight] [Light] Setting hue to 255
[1/22/2017, 8:13:39 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:39 PM] [MiLight] [Light] Saturation set to 68, but hue is not 0, resetting hue
[1/22/2017, 8:13:42 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:42 PM] [MiLight] [Light] Setting hue to 251
[1/22/2017, 8:13:42 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:42 PM] [MiLight] [Light] Saturation set to 5, but hue is not 0, resetting hue
[1/22/2017, 8:13:45 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:45 PM] [MiLight] [Light] Setting hue to 222
[1/22/2017, 8:13:45 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:45 PM] [MiLight] [Light] Saturation set to 20, but hue is not 0, resetting hue
[1/22/2017, 8:13:47 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:47 PM] [MiLight] [Light] Setting hue to 28
[1/22/2017, 8:13:47 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:47 PM] [MiLight] [Light] Saturation set to 23, but hue is not 0, resetting hue
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Setting hue to 15
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Saturation set to 1, but hue is not 0, resetting hue
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Setting hue to 0
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Setting power state to on
[1/22/2017, 8:13:51 PM] [MiLight] [Light] Saturation set to 0, setting bulb to white
dotsam commented 7 years ago

@samsonrosen @zuroph Found and fixed the bug w/ v6 bridges. Pushed out version 0.1.7 that fixes this. Going to close this issue now, please open a new one if you find any other problems. Thanks!

pauleec commented 6 years ago

Hi, I've just updated my homebridge and have lost 4 of the 8 zones I had previously. I have tried adding the "use8zone":true which wasn't in the config file before but despite this can still only load 4zone support. Something seems to have changed in the latest update...

Here is the config.json relevant bit:

{ "platform":"MiLight", "name":"DanksApartmentLighting", "use8Zone" : true, "bridges": [ { "version": "v6", "lights": {"fullColor": ["Kitchen Downlighters", "Kitchen Bulbs", null, "Bathroom", "Bedside Downlighters", "Bedside Lamps", "Guest Bathroom", "Workshop"], "rgbw": [null,null, "Kitchen LED Strips", null, null, null, null, null]}, "repeat": 1, "delay": 100 } ] }, With the debug flag on I see this in stdout:

[2018-4-14 05:36:32] Loaded plugin: homebridge-alexa [2018-4-14 05:36:32] Registering platform 'homebridge-alexa.Alexa' [2018-4-14 05:36:32] --- [2018-4-14 05:36:32] Loaded plugin: homebridge-broadlink-rm [2018-4-14 05:36:32] Registering platform 'homebridge-broadlink-rm.BroadlinkRM' [2018-4-14 05:36:32] --- [2018-4-14 05:36:33] Loaded plugin: homebridge-milight [2018-4-14 05:36:33] Registering platform 'homebridge-milight.MiLight' [2018-4-14 05:36:33] --- [2018-4-14 05:36:33] Loaded plugin: homebridge-server [2018-4-14 05:36:33] Registering platform 'homebridge-server.Server' [2018-4-14 05:36:33] --- [2018-4-14 05:36:33] Loaded config.json with 0 accessories and 4 platforms. [2018-4-14 05:36:33] --- [2018-4-14 05:36:33] Loading 4 platforms... [2018-4-14 05:36:33] [Alexa] Initializing Alexa platform... [2018-4-14 05:36:33] [MiLight] Initializing MiLight platform... [2018-4-14 05:36:33] [MiLight] Only a maximum of 4 zones per bulb type are supported per bridge. Only recognizing the first 4 zones. 2018-04-14T05:36:33.154Z Milight: {"ip":"255.255.255.255","port":5987,"delayBetweenCommands":100,"commandRepeat":1,"fullSync":true,"sendKeepAlives":true,"type":"v6","broadcastMode":true} [2018-4-14 05:36:33] [MiLight] Only a maximum of 4 zones per bulb type are supported per bridge. Only recognizing the first 4 zones. [2018-4-14 05:36:33] [MiLight] Initializing platform accessory 'Kitchen Downlighters'... [2018-4-14 05:36:33] [MiLight] Initializing platform accessory 'Kitchen Bulbs'... [2018-4-14 05:36:33] [MiLight] Initializing platform accessory 'Bathroom'... [2018-4-14 05:36:33] [MiLight] Initializing platform accessory 'Kitchen LED Strips'... [2018-4-14 05:36:33] [Broadlink RM] Initializing BroadlinkRM platform... [2018-4-14 05:36:33] [Broadlink RM] Curtains Accessory Ready [2018-4-14 05:36:33] [Broadlink RM] Initializing platform accessory 'Learn'... [2018-4-14 05:36:33] [Broadlink RM] Initializing platform accessory 'Scan Frequency'... [2018-4-14 05:36:33] [Broadlink RM] Initializing platform accessory 'Curtains'... [2018-4-14 05:36:33] [Homebridge Server] Initializing Server platform... [2018-4-14 05:36:33] Loading 0 accessories...

Not sure why I am getting the "[MiLight] Only a maximum of 4 zones per bulb type are supported per bridge. Only recognizing the first 4 zones." message - whats wrong? Any suggestions?