Giter Site home page Giter Site logo

homebridge-milight's People

Contributors

dotsam avatar fkistner avatar lundberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-milight's Issues

Color change not working correctly

I have recently bought 4 9W RGBWW milight bulbs off ebay, and I got an iBox2 bridge, which is a v6 model I guess and installed homebridge-milight to my rpi. Although my bulbs should work with the rgbw setup in config.json they only work when in fullColor setup. Strange as it may be, my problem is that even though brightness and on/off commands work ok, the colours change correctly only when the last color is white (or as Siri calls it "direct sunlight"). If you try to change 2 colours one after another the second time you are either going to end up with a different hue of the color you wanted or another color altogether.

Connection stops working after ~10 minutes

Hey,

I hope this is the right place to write about my issue. I ordered some rgbw-milight-bulbs and a wifi bridge. There's just an "iBox 2" written on the box. I can't find any further details about the exact version (same with the web frontend).

So let's come to the details. Configuration worked fine. Found out that it has to be v6 by trial and error.
After a random time (mostly between 7-15 minutes) it stops working. Homebridge is still running and other homebridge accessories still work (beside "homebridge-milight"). I still can switch the devices on and off in the app, but nothing happens with the bulbs. Restart homebridge made it work again, so I got a crontab that restarts the homebridge server every 6 minutes, but that's a dirty solution.

I also started homebridge in debug mode. Here's the part where everything worked fine:
EventedHTTPServer [::ffff:192.168.178.140] HTTP request: /characteristics +5s HAPServer [CC:22:3D:E3:CE:34] HAP Request: PUT /characteristics +1ms Accessory [Homebridge] Processing characteristic set: [{"aid":11,"iid":9,"value":0}] +1ms Accessory [Homebridge] Setting Characteristic "On" to value 0 +1ms [1/15/2017, 4:48:14 PM] [MiLight] [IKEA] Setting power state to off EventedHTTPServer [::ffff:192.168.178.140] Muting event '11.9' notification for this connection since it originated here. +2ms EventedHTTPServer [::ffff:192.168.178.140] HTTP Response is finished +1ms

And here's some debug information when it didn't work. I can't see any problem/difference.
EventedHTTPServer [::ffff:192.168.178.140] HTTP request: /characteristics +8s HAPServer [CC:22:3D:E3:CE:34] HAP Request: PUT /characteristics +0ms Accessory [Homebridge] Processing characteristic set: [{"aid":11,"iid":9,"value":0}] +2ms Accessory [Homebridge] Setting Characteristic "On" to value 0 +0ms [1/15/2017, 5:31:03 PM] [MiLight] [IKEA] Setting power state to off EventedHTTPServer [::ffff:192.168.178.140] Muting event '11.9' notification for this connection since it originated here. +2ms EventedHTTPServer [::ffff:192.168.178.140] HTTP Response is finished +1ms

If you need any further information, feel free to ask :)

Control not possible with Home App

Hello,
I bought this MiLight iBox2 (idk. witch version v1-v6?) and this RGBW Bulb.
With the MiLight App everything is working fine!
I try to integrate this MiLight System into my HomeKit Homebridge.

img_6188 2
img_6189 2

In the Webinterface of the iBox I gave the iBox a static IP-address and changed Protocol to UDP.
I opend the port 8899 on my Linux Server.
In the config.json of Homebridge I define the static IP-address.

config.json:

"platforms": [
{
"platform": "MiLight",
"name": "MiLight Bridge",
"bridges": [
{
"ip_address": "192.168.178.19",
"port": "8899",
"version": "v6",
"lights": {
"rgbw": [
"Schreibtisch"
]
},
"repeat": 3,
"delay": 100
}
]
}

On v6 version I get this error output, but on all other versions the control with the Home App dosen't work, too:
Unhandled rejection Error: no response timeout at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-milight/node_modules/node-milight-promise/src/milight-v6-mixin.js:125:26) at ontimeout (timers.js:469:11) at tryOnTimeout (timers.js:304:5) at Timer.listOnTimeout (timers.js:264:5)

Can anybody help me to get my MiLight working with Apple Home App?
Thanks!

More than 4 zones?

Hi,

I am using the new 8 zone remote in combination with the latest WiFi box v6 (iBox2). When selecting the 8 zone remote in the milight phone app I can assigning the RGBCCT lights to the 8 zones. When I use your software to control the light by homebridge I can only assign 4 zones. When I use more than 4 zones, the 5th zone is overwriting the 1st one.

It would be great if more than 4 zones are allowed in your script. Would this be possible in any way? If not and I want to control my lights with homebridge I have to buy 4 more iBoxes because of the limitations of the software.

Thanks!

No reactions with valid connection and commands

Hi Guys,

Following Problem,

Setup:

Old RGB LED Strips (probably 3.5 years old)
New MiLight V6 Bridge

RGB Strips can be controlled with Simple 1-zone RF controller
RGB Strips can be controlled over MiLight 3 App on iOS over MiLight v6 Bridge

Homebridge is running on a Raspberry Pi 2 Rev. B
Installed two days ago, so up-to-date.

Config

„bridge“: {
„name“: „Homebridge“,
„username“: „CC:22:2D:E3:DC:22“,
„port“: 51826,
„pin“: „031-67-123“
},

„platforms“: [
{
„platform“:“MiLight“,
„name“:“MiLight“,
„bridges“: [
{
„ip_address“: „192.168.0.212“,
„version“: „v6“,
„lights“: {„rgb“: „Desk“},
„repeat“: 3,
„delay“: 100
}
]
}
]
} 

Output Initialization

[6/14/2017, 7:28:20 PM] Loaded plugin: homebridge-milight
[6/14/2017, 7:28:20 PM] Registering platform 'homebridge-milight.MiLight'
[6/14/2017, 7:28:20 PM] ---
[6/14/2017, 7:28:20 PM] Loaded config.json with 0 accessories and 1 platforms.
[6/14/2017, 7:28:20 PM] ---
[6/14/2017, 7:28:21 PM] Loading 1 platforms...
[6/14/2017, 7:28:21 PM] [MiLight] Initializing MiLight platform...
Milight: {"ip":"192.168.0.212","port":5987,"delayBetweenCommands":10,"commandRepeat":1}
[6/14/2017, 7:28:21 PM] [MiLight] Initializing platform accessory 'Desk'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

Output Milight Initialization

Milight: initializing socket
Milight: initializing socket done
Milight: bytesSent=27, buffer=[0x20,0x00,0x00,0x00,0x16,0x02,0x62,0x3A,0xD5,0xED,0xA3,0x01,0xAE,0x08,0x2D,0x46,0x61,0x41,0xA7,0xF6,0xDC,0xAF,0xD3,0xE6,0x00,0x00,0xC9]
Milight: bytesReceived=22, buffer=[0x28,0x00,0x00,0x00,0x11,0x00,0x02,0xF0,0xFE,0x6B,0x26,0x0C,0x18,0x5F,0xB8,0x74,0x82,0x00,0x01,0xB2,0x01,0x00], remote=192.168.0.212
Milight: ready for next command
Milight: Session Id: 0xB2,0x01

Output @ On/Off Commands

[6/14/2017, 7:29:18 PM] [MiLight] [Desk] Setting power state to on
Milight: bytesSent=22, buffer=[0x80,0x00,0x00,0x00,0x11,0xB2,0x01,0x00,0x05,0x00,0x31,0x00,0x00,0x05,0x02,0x09,0x00,0x00,0x00,0x01,0x00,0x42]
Milight: bytesReceived=8, buffer=[0x88,0x00,0x00,0x00,0x03,0x00,0x05,0x00], remote=192.168.0.212
Milight: ready for next command
[6/14/2017, 7:29:19 PM] [MiLight] [Desk] Setting power state to off
Milight: bytesSent=22, buffer=[0x80,0x00,0x00,0x00,0x11,0xB2,0x01,0x00,0x06,0x00,0x31,0x00,0x00,0x05,0x02,0x0A,0x00,0x00,0x00,0x01,0x00,0x43]
Milight: bytesReceived=8, buffer=[0x88,0x00,0x00,0x00,0x03,0x00,0x06,0x00], remote=192.168.0.212
Milight: ready for next command
[6/14/2017, 7:29:20 PM] [MiLight] [Desk] Setting power state to on
Milight: bytesSent=22, buffer=[0x80,0x00,0x00,0x00,0x11,0xB2,0x01,0x00,0x07,0x00,0x31,0x00,0x00,0x05,0x02,0x09,0x00,0x00,0x00,0x01,0x00,0x42]
Milight: bytesReceived=8, buffer=[0x88,0x00,0x00,0x00,0x03,0x00,0x07,0x00], remote=192.168.0.212
Milight: ready for next command

First problem, it's very strange. I'm only able to connect with the bridge over port 5978. Also this port was select as default when the port value is not set in the config.

I tried to Link the bulb several times
Also tried to connect with an older bridge (think v4, I bought it with the strips 3.5 years ago), but was not able to get it connected with homebridge

I'm out of ideas. So may you got an idea left.

Thank you for your great work. :D

Brightness/Colour Temp on Non-rgbw bulbs

rgb and white bulbs only support up/down commands for brightness and colour temp, not an absolute value. Currently we handle this by simply sending a single up/down command based on which side of the midpoint the commands are for.

There are a known number of steps for each of these values that the bulbs support, so ideally we would keep track of these and send the appropriate number of steps to get to the users desired values. This will have to be worked out with #3 to ensure we don't have to send 10+ commands for each percentage the user selects on a slider. Also have to confirm 100% how/if Homebridge keeps track of this data already to read from it.

i cannot run the milight platform that is my second platform

this is the code
{
"bridge": {
"name": "xxxx",
"username": "AA:BB:CC:DD:CE:33",
"port": xxxx,
"pin": "123-45-789",

"platforms": [
{
"platform": "MiLight",
"name": "MiLight",
"bridges": [
{
"ip_address": "192.168.1.51",
"version": "v6",
"lights": {
"fullColor": ["rgb-v6", null, "Bedroom", "Hallway"],
"rgbw": ["rgb-v6", "rgb-v6"]
},
"repeat": 1,
"delay": 100
},
{
"ip_address": "192.168.1.51",
"lights": {
"white": ["rgb-v6", "Den"],
"rgbw": ["rgb-v6"]
}
}
]
}]
},
"description": "Homebridge",
"accessories": [

],
"platforms": [{
"platform": "BroadlinkRM",
"name": "Broadlink RM",
"hideScanFrequencyButton": false,
"hideLearnButton": false,
"accessories": [{
"name": "Auto-off Switch",
"type": "switch",
"disableAutomaticOff": false,
"onDuration": 5,
"data": {
"on": "b20184030b1d0c1c0c1c1910190f0b1d18100b1d190f0b1d19100b1d0b1d0b1d0b1d0b1d190f0b1d0b1d0b1d0b1d190f1910190f0b1d0b1d0b1d190f190f0c1d0b1d0b1d0b1d0b1d0b1d190f19100a1d0b1d0c1d0b1d18100b1d18101810190f0c1c0b1d19101800010d0b100b0f0b100b0f0c0f0b100b100b100b100b0f0b100b2a0c1c0c1c0c1c191018100b1d1810190f191018100b1d0b1d0b1d190f190f19101810190f190f0c1c0c1c0c1c190f19100b1d190f0b1d190f0c1d18100b1d0b1d0b1d0b1d0b1d190f0c1c0b1d0c1c0c1c19101810190f0b1d0b1d0c1c190f190f0c1d0b1d0b1d0b1d0b1d0b1d190f190f0c1c0b1d0c1d0b1c19100b1d190f190f190f0c1c0c1c190f1900010d0b0f0c0f0c0f0b100b100b0f0c0f0b100b100b0f0b100b2a0c1c0c1d0b1d1810190f0b1d190f1910181018100b1d0b1d0b1d190f190f19101810190f190f0b1e0b1c0c1d181018100b1d190f0c1c190f0c1d190f0b1d0b1d0b1d0b1d0b1d190f0b1e0b1c0c1c0c1d190f190f190f0c1c0c1c0c1d180f19100b1d0b1d0b1d0b1d0b1d0b1d190f190f0c1c0c1d0b1d0b1d18100b1d190f190f19100b1c0c1d18101800010d0b100b0f0c0f0b100b100b100b0f0b100b100b0f0b100b2b0b1d0b1d0b1d1810190f0b1d190f190f1910190f0b1d0b1d0c1c190f191018101810190f19100b1c0c1d0b1d1810190f0b1d190f0c1d180f0c1d18100b1d0b1d0c1c0b1d0c1c19100b1c0c1d0b1d0b1d1810190f190f0c1c0b1d0c1c191018100b1d0b1d0b1d0b1d0b1d0c1d180f19100b1d0b1d0b1d0b1d18100b1d19101810190f0b1d0b1d190f1900010c0b100b100b0f0c0f0b100b0f0c0f0b100b100b0f0c0f0c290c1d0b1d0b1d1810190f0c1c19101810190f190f0c1c0c1c0b1d1910181018101810190f190f0c1d0b1d0b1d1810190f0c1c190f0c1c19100b1d190f0b1d0c1c0c1c0c1c0b1d19100b1d0b1d0b1d0b1d190f190f190f0c1d0b1c0c1d181018100b1d0b1d0b1d0c1c0c1c0c1c190f19100b1d0b1d0b1d0b1d190f0c1c190f1910190f0b1d0b1d190f1900010c0c0f0b100b100b0f0b100b100b100b0f0c0f0b100b0f0c2a0b1d0b1d0b1d190f190f0c1c1910190f1810190f0c1c0c1c0c1c19101810190f190f191018100b1d0b1d0b1d190f19100b1c19100b1d190f0b1d190f0c1c0b1d0c1d0b1c0c1c19100b1d0b1d0b1d0b1d190f190f19100b1d0b1d0b1d190f190f0b1d0c1c0c1c0c1c191d191c191d191c191d190005dc00000000",
"off": "b2028403190f0c1c0c1c0c1c0c1d190f0b1d0c1c0c1c0c1c190f190f1a0e0c1d0b1c0c1c1a0f190f0c1c0c1c0c1c0c1c0c1c0c1c1a0e1a0f0c1c0c1c0c1c0c1c190f190f1a0f0b1c1a0f190f190f0c1c1900010c0c0f0c0f0b0f0c0f0c0f0c0e0d0e0c0f0c0f0c0e0d0e0c2a0b1d0c1c190f190f0c1c0c1c1a0f190f0b1d190f0c1c1a0e1a0f190f190f0c1c190f190f0c1c1a0e1a0f0c1c1a0e1a0e0c1d190e0c1d0c1c190f0c1c190f0c1d0b1c0c1c0c1c1a0e0c1d0c1c0c1c0c1c190f190f1a0f0b1d0b1c0d1c190f190f0c1c0c1c0c1c0c1c0c1c0c1c1a0f190f0b1d0c1c0c1c0c1c190f1a0e1a0e0d1c190f190f190f0c1c1a00010b0c0f0c0f0c0e0c0f0c0f0c0f0b0f0c0f0c0f0c0f0b0f0c2a0c1c0c1c190f1a0e0c1c0c1c1a0f190f0c1c190f0c1c1a0e1a0e1a0f190f0c1c190f1a0f0b1c1a0f190f0c1c190f1a0e0c1c1a0f0c1c0c1c190f0c1c190f0c1c0c1d0b1c0c1d190f0c1c0c1c0c1c0c1c190f190f1a0f0b1d0c1c0c1c190f190f0c1c0c1c0c1c0c1c0c1c0c1c1a0f190f0c1c0c1c0c1c0c1c190f190f1a0f0b1d190f190f1a0e0c1c1a00010b0c0f0c0f0c0e0c0f0c0f0c0f0c0e0c0f0c0f0c0f0c0f0b2a0c1c0c1c190f190f0c1c0c1c1a0f190f0c1c190f0c1c1a0e1a0f190f190f0c1c1a0e1a0e0d1c190f190f0c1c1a0e1a0e0d1c190f0c1c0c1c190f0c1c1a0e0c1d0c1b0d1c0c1c190f0c1c0c1c0c1c0c1c190f1a0e1a0f0c1b0c1d0c1c190f190f0c1c0c1d0b1c0c1d0b1d0b1d190f190f0c1c0c1c0c1c0c1c1a0e1a0e1a0f0c1c190f190f190f0c1c1a00010b0c0f0c0f0c0f0b0f0c0f0c0f0c0f0c0e0c0f0c0f0c0f0c290c1c0c1c190f190f0c1d0c1b1a0f190f0c1c190f0c1c1a0f190f190f190f0c1c1a0f190f0b1d190f190f0c1c1a0e1a0f0c1c190f0c1c0c1c190f0c1c1a0f0b1d0c1b0d1c0c1c190f0c1c0c1c0c1c0c1c190f1a0f190f0c1c0c1c0c1c190f1a0e0c1d0c1b0d1c0b1c0d1c0c1b1a0f190f0c1c0c1c0c1c0c1c1a0e1a0f190f0c1c190f1a0e1a0e0c1d1900010c0b0f0c0f0c0f0c0e0d0e0c0f0c0f0c0e0c0f0c0f0c0f0c290c1c0c1c190f1a0f0c1b0d1c190f190f0c1c1a0e0c1d190f190f190f1a0e0c1d190f190f0c1c190f190f0c1d190f190f0c1c190f0c1c0c1c1a0e0c1c1a0f0c1c0c1c0c1c0c1c190f0c1c0c1c0c1c0c1c1a0f190f190f0c1d0b1c0c1c1a0e1a0f0c1c0c1c0c1c0c1c0c1c0c1c190f1a0e0c1c0c1d0b1c0c1c1a0f190f190f0c1c1a0e1a0f190f0c1c190005dc00000000"
}
},
{
"name": "TV On/Off",
"type": "switch",
"data": {
"on": "2600580000012a9214101411141014101510141014371410143615361436153614361437141014371410143615101410143714101411141014361411143614371410143615361436150005210001294a14000c5700012a4914000d05",
"off": "2600580000012992141114101411131114101411143614111337143614371436143714361411143614111436141014111436141114101410143714101437143614111436143614371400052100012a4914000c580001294a14000d05"
}
},
{
"name": "Channel Up",
"type": "switch-repeat",
"sendCount": 1,
"data": "2600500000012..."
},
{
"name": "Channel Down",
"type": "switch-repeat",
"sendCount": 1,
"data": "2600500000012..."
},
{
"name": "Volume Up",
"type": "switch-repeat",
"sendCount": 5,
"interval": 0.3,
"data": "2600500000012..."
},
{
"name": "Volume Down",
"type": "switch-repeat",
"sendCount": 5,
"interval": 0.3,
"data": "2600500000012..."
},
{
"name": "Entertainment",
"type": "switch-multi",
"interval": 0.5,
"data": [
"2600500000012...",
"2600500000012...",
"2600500000012..."
]
},
{
"name": "Entertainment 2",
"type": "switch-multi-repeat",
"interval": 2,
"data": [{
"data": "2600500000012...",
"sendCount": 2,
"interval": 0.3,
"pause": 10
},
{
"data": "2600500000012...",
"sendCount": 2,
"interval": 5
}
]
},
{
"name": "Light",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 0,
"data": {
"on": "b21334000c250d250c250c25260e0c260c26250d260d260e0c26260d260e0c260c26250e260e250e0d260c260c0001700c250d25250d260e00000000",
"off": "b21334000c250d250c250c25260e0c260c26250d260d260e0c26260d260e0c260c26250e260e250e0d260c260c0001700c250d25250d260e00000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Light2",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 5,
"data": {
"on": "b21034000b23220c220c0b23220c0b230b23220c220d220c220c0b23220c220c220d0b230b230b230b23220d0b230b230c230c000160220c00000000",
"off": "b21034000b23220c220c0b23220c0b230b23220c220d220c220c0b23220c220c220d0b230b230b230b23220d0b230b230c230c000160220c00000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Light3",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 5,
"data": {
"on": "b20734000c230b230b23230c230c0c230c230c23230c0c23230c0c23220d230c0c230b23230d0c230c230c23230c0c230c240c230c00016200000000",
"off": "b20734000c230b230b23230c230c0c230c230c23230c0c23230c0c23220d230c0c230b23230d0c230c230c23230c0c230c240c230c00016200000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Light4",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 5,
"data": {
"on": "b100b0000b230b22210c220c220b220c0a23210c220c210c0b220b230b220b220b23220b0b220c220b00015f220c0a23220c210c0b22220c0a230b22220c220b210d210c0b22220c210c220b0b230a230b230a230b22220b0b230b220b000160210c0b22220c210c0b22220c0b220b23210c210c220c210c0b23210c210c220c0b220b220c220b220b23210c0b220b220c00015f210d0a23210c220b0c22210c0b230b22220c210c210c220b0b23210c060005dc0000000000000000",
"off": "b100b0000b230b22210c220c220b220c0a23210c220c210c0b220b230b220b220b23220b0b220c220b00015f220c0a23220c210c0b22220c0a230b22220c220b210d210c0b22220c210c220b0b230a230b230a230b22220b0b230b220b000160210c0b22220c210c0b22220c0b220b23210c210c220c210c0b23210c210c220c0b220b220c220b220b23210c0b220b220c00015f210d0a23210c220b0c22210c0b230b22220c210c210c220b0b23210c060005dc0000000000000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Light5",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 5,
"data": {
"on": "78123400220c230c230c0c220c220c22220c230c230c220c220c220c230c0c22230c0c220c220c220c22230c0c00015a0c220c220c220c2200000000",
"off": "78123400220c230c230c0c220c220c22220c230c230c220c220c220c230c0c22230c0c220c220c220c22230c0c00015a0c220c220c220c2200000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Light6",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 5,
"data": {
"on": "79083400230b0d210d210d21230b230b230b230b230b240b240b0d21230b0d21230b0d210d210d210d0001580d210d210d210d22230b230b00000000",
"off": "79083400230b0d210d210d21230b230b230b230b230b240b240b0d21230b0d21230b0d210d210d210d0001580d210d210d210d22230b230b00000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Light7",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 5,
"data": {
"on": "78073400230b0c220c220c22230b230c230c230c230c230c230c0c22230c0c220c22230c0c220c220c0001590c220c220c210c22230c230b00000000",
"off": "78073400230b0c220c220c22230b230c230c230c230c230c230c0c22230c0c220c22230c0c220c220c0001590c220c220c210c22230c230b00000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Light8",
"type": "light",
"host": "192.168.1.47",
"defaultBrightness": 100,
"useLastKnownBrightness": true,
"disableAutomaticOff": true,
"onDuration": 5,
"data": {
"on": "78083400230c0c22220c0c220c220c22230c0c220b00015a0b220c230c220c22220c220c220c0b220c220b22230c220c230c220c220c220c00000000",
"off": "78083400230c0c22220c0c220c220c22230c0c220b00015a0b220c230c220c22220c220c220c0b220c220b22230c220c230c220c220c220c00000000",
"brightness10": "2600500000012...",
"brightness20": "2600500000012...",
"brightness30": "2600500000012...",
"brightness40": "2600500000012...",
"brightness50": "2600500000012...",
"brightness60": "2600500000012...",
"brightness70": "2600500000012...",
"brightness80": "2600500000012...",
"brightness90": "2600500000012...",
"brightness100": "2600500000012..."
}
},
{
"name": "Air Conditioner parm",
"type": "air-conditioner",
"host": "192.168.1.50",
"data": {
"off": "2600b60069330f0b0e270d0d0d0d0d270d0d0d270f0b0e0c0e260e270d270d0d0d270e0c0e260e260e25100c0d0d0d0d0d0d0d270e260e0c0e260e260f0b0e0d0d270d0d0d0d0e260e0c0e0c0e260e270d0d0d270d270e260e260e260e270d270d270e260e260e0c0e0c0e0c0e0d0d0d0d0d0d0d0d0d0d270e260e260e260e0d0d2410270d0d0d0d0e0c0e0c0e0c0e260e0c0e0d0d270e0c0d270d270e260e0c0e270d270d0d0d270d0d0e0c0e0c0e260e0c0e0c0e270d000d050000",
"temperature30": {
"pseudo-mode": "heat",
"data": "2600500000012..."
},
"temperature16": {
"pseudo-mode": "cool",
"data": "2600b60068340d0d0e260e0c0e0c0e260e0c0e260e0d0d0d0d270e260e260e0c0e260e0c0e260e270d270e0c0e0c0e0c0e0c0e260e260e0c0e260e270d0d0e0c0e260e0c0e0c0e260e0c0e0c0e260e270e0c0e260e260e260e260e260e270d270e260e260e260e0c0e0c0e0d0d0d0d0d0d0d0e0c0e0c0e260e260e260e260e0d0d270d270e0c0e0c0e0c0e0c0e0c0e260e0c0e0d0d270d0d0e260e260e0c0e260e0c0e260e0d0d270e0c0e0c0e260e0c0e260e0c0e260e000d050000"
},
"temperature22": {
"pseudo-mode": "cool",
"data": "2600b60068340c0e0c290b0f0b0f0b290b0f0c280c0e0c0e0c280c290b290b0f0b290c0e0c280c280c290b0f0b0f0b0f0b0f0b290c280c0e0c280c290b0f0b0f0b290c0e0c0e0c280c0e0c0e0c290b290b0f0b290c280c280c280c290b290b290c280c280c280c0f0b0f0b0f0b0f0b0f0b0f0c0e0c0e0c280c280c290b290b0f0b290c280c0e0c0e0c0e0c0e0c0f0b290b0f0b0f0b290c0e0c280c280c0f0b0f0b290b0f0b290c280c0e0c0e0c280c290b0f0b290c0e0c000d050000"
},
"temperature23": {
"pseudo-mode": "cool",
"data": "2600b60067350d0d0d270c0f0b0f0b290c0e0c280c0e0c0e0d270d270d280b0f0b290c0e0b290d270d270d0d0d0d0c0f0b0f0b290b290c0e0b290d270d0d0c0e0c290c0e0b0f0b290c0e0b0f0b290c280d0d0c290c280b290c280c280d270d270d280c280c280c0e0b0f0b0f0c0e0c0e0c0e0c0e0d0d0c290c280c280c280c0e0c280d270d0d0c0e0c0f0b0f0b0f0b290c0a100e0c280d0d0c280d280c0e0b290b0f0b0f0b290c280d0d0d0d0c290c0e0b290c280b0f0b000d050000"
},
"temperature24": {
"pseudo-mode": "cool",
"data": "2600b60066360c0e0c280c0e0c0e0c280d0e0b290c0e0b0f0b290c280c280d0d0c280d0e0b290d270b290c0e0c0e0d0d0c0e0c280d280b0f0b290b290b0f0d0d0c280c0e0c0e0c290b0f0b0f0c280b290c0e0c280d270d270d280c280c280c280c280d270d280b0f0c0e0b0f0b0f0b0f0b0f0b0f0b0f0c280d270c290b290b0f0c280c280d0d0c0e0c0e0c0e0c0e0c290b0f0b0f0b290c0e0b290c280d0d0c0e0c0e0c0f0b290b290b0f0b0f0b290c280d270d280b0f0b000d050000"
},
"temperature25": {
"pseudo-mode": "cool",
"data": "2600b60067350d0d0c290b0f0b0f0d270c0e0c280c0e0c0e0d270c290b290b0f0d270c0e0d270c280d270d0e0a100c0e0b0f0b290b290c0f0c270c280c0f0b0f0c280c0e0b0f0b290b0f0c0e0c280c280c0e0d280c280c280c270d280d270c290b290c280c280d0d0c0e0c0e0d0d0c0e0c0e0c0f0b0f0b290c280b290c280c0e0d270d280b0f0b0f0b0f0c0e0c0e0c280c0e0d0d0c280c0f0b290c280b0f0c280c280c280e0c0c290b0f0c0f0a290c0e0b0f0b0f0c280c000d050000"
},
"temperature26": {
"pseudo-mode": "heat",
"data": "2600b60066350c0f0c280b0f0b0f0d270c0e0d270c0e0c0e0d270c290c280c0e0c280c0e0c280d270d280b0f0c0e0b0f0b0f0b290c280c0e0d270d280c0e0b0f0b290b0f0b0f0c280d0d0d0d0d270c290d0d0b290b290c280c280c280c290b290b290c280c280c0e0c0e0c0e0d0d0c0e0c0f0b0f0b0f0b290c280c280c280c0e0c290c280e0c0b0f0b0f0c0e0c0e0c280c0e0c0e0c290c0e0b290c280b0f0c0e0c280d270c0e0c290b0f0b0f0b290b290c0e0c0e0c280c000d050000"
}
}

},
{
"name": "Air Conditionermom",
"type": "air-conditioner",
"host": "192.168.1.49",
"data": {
"off": "2600b60069330f0b0e270d0d0d0d0d270d0d0d270f0b0e0c0e260e270d270d0d0d270e0c0e260e260e25100c0d0d0d0d0d0d0d270e260e0c0e260e260f0b0e0d0d270d0d0d0d0e260e0c0e0c0e260e270d0d0d270d270e260e260e260e270d270d270e260e260e0c0e0c0e0c0e0d0d0d0d0d0d0d0d0d0d270e260e260e260e0d0d2410270d0d0d0d0e0c0e0c0e0c0e260e0c0e0d0d270e0c0d270d270e260e0c0e270d270d0d0d270d0d0e0c0e0c0e260e0c0e0c0e270d000d050000",
"temperature30": {
"pseudo-mode": "heat",
"data": "2600500000012..."
},
"temperature16": {
"pseudo-mode": "cool",
"data": "2600b60068340d0d0e260e0c0e0c0e260e0c0e260e0d0d0d0d270e260e260e0c0e260e0c0e260e270d270e0c0e0c0e0c0e0c0e260e260e0c0e260e270d0d0e0c0e260e0c0e0c0e260e0c0e0c0e260e270e0c0e260e260e260e260e260e270d270e260e260e260e0c0e0c0e0d0d0d0d0d0d0d0e0c0e0c0e260e260e260e260e0d0d270d270e0c0e0c0e0c0e0c0e0c0e260e0c0e0d0d270d0d0e260e260e0c0e260e0c0e260e0d0d270e0c0e0c0e260e0c0e260e0c0e260e000d050000"
},
"temperature22": {
"pseudo-mode": "cool",
"data": "2600b60068340c0e0c290b0f0b0f0b290b0f0c280c0e0c0e0c280c290b290b0f0b290c0e0c280c280c290b0f0b0f0b0f0b0f0b290c280c0e0c280c290b0f0b0f0b290c0e0c0e0c280c0e0c0e0c290b290b0f0b290c280c280c280c290b290b290c280c280c280c0f0b0f0b0f0b0f0b0f0b0f0c0e0c0e0c280c280c290b290b0f0b290c280c0e0c0e0c0e0c0e0c0f0b290b0f0b0f0b290c0e0c280c280c0f0b0f0b290b0f0b290c280c0e0c0e0c280c290b0f0b290c0e0c000d050000"
},
"temperature23": {
"pseudo-mode": "cool",
"data": "2600b60067350d0d0d270c0f0b0f0b290c0e0c280c0e0c0e0d270d270d280b0f0b290c0e0b290d270d270d0d0d0d0c0f0b0f0b290b290c0e0b290d270d0d0c0e0c290c0e0b0f0b290c0e0b0f0b290c280d0d0c290c280b290c280c280d270d270d280c280c280c0e0b0f0b0f0c0e0c0e0c0e0c0e0d0d0c290c280c280c280c0e0c280d270d0d0c0e0c0f0b0f0b0f0b290c0a100e0c280d0d0c280d280c0e0b290b0f0b0f0b290c280d0d0d0d0c290c0e0b290c280b0f0b000d050000"
},
"temperature24": {
"pseudo-mode": "cool",
"data": "2600b60066360c0e0c280c0e0c0e0c280d0e0b290c0e0b0f0b290c280c280d0d0c280d0e0b290d270b290c0e0c0e0d0d0c0e0c280d280b0f0b290b290b0f0d0d0c280c0e0c0e0c290b0f0b0f0c280b290c0e0c280d270d270d280c280c280c280c280d270d280b0f0c0e0b0f0b0f0b0f0b0f0b0f0b0f0c280d270c290b290b0f0c280c280d0d0c0e0c0e0c0e0c0e0c290b0f0b0f0b290c0e0b290c280d0d0c0e0c0e0c0f0b290b290b0f0b0f0b290c280d270d280b0f0b000d050000"
},
"temperature25": {
"pseudo-mode": "cool",
"data": "2600b60067350d0d0c290b0f0b0f0d270c0e0c280c0e0c0e0d270c290b290b0f0d270c0e0d270c280d270d0e0a100c0e0b0f0b290b290c0f0c270c280c0f0b0f0c280c0e0b0f0b290b0f0c0e0c280c280c0e0d280c280c280c270d280d270c290b290c280c280d0d0c0e0c0e0d0d0c0e0c0e0c0f0b0f0b290c280b290c280c0e0d270d280b0f0b0f0b0f0c0e0c0e0c280c0e0d0d0c280c0f0b290c280b0f0c280c280c280e0c0c290b0f0c0f0a290c0e0b0f0b0f0c280c000d050000"
},
"temperature26": {
"pseudo-mode": "heat",
"data": "2600b60066350c0f0c280b0f0b0f0d270c0e0d270c0e0c0e0d270c290c280c0e0c280c0e0c280d270d280b0f0c0e0b0f0b0f0b290c280c0e0d270d280c0e0b0f0b290b0f0b0f0c280d0d0d0d0d270c290d0d0b290b290c280c280c280c290b290b290c280c280c0e0c0e0c0e0d0d0c0e0c0f0b0f0b0f0b290c280c280c280c0e0c290c280e0c0b0f0b0f0c0e0c0e0c280c0e0c0e0c290c0e0b290c280b0f0c0e0c280d270c0e0c290b0f0b0f0b290b290c0e0c0e0c280c000d050000"
}
}

},
{
"name": "Air Conditioner Advanced",
"type": "air-conditioner",
"autoSchedule": [{
"days": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"startTime": 6,
"endTime": 8
},
{
"days": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"startTime": 16,
"endTime": 22
},
{
"days": ["Saturday", "Sunday"],
"startTime": 6,
"endTime": 22
}
],
"autoSwitch": "A/C Auto Switch",
"data": {
"off": "2600b60066360b0f0b280d0e0c0e0c280c0f0b290b0f0b0f0b290b290c280c0e0c280c0f0b290b290b290c0e0c0e0c0e0c0e0c280c290b0f0b290b290c0e0c0e0c280c0f0b0f0b290b0f0b0f0b290c280c0e0c280c290b290b290b290c280c280c290b280c290b0f0b0f0c0e0c0e0c0e0c0e0c0e0c0f0b290b290b290c280c0e0c270d290b0f0b0f0b0f0b0f0b0f0b290c0e0c0e0c280c0f0b290b290b290c0e0c280c280c0f0b290b0f0b0f0b0f0b290c0e0c0e0c280c000d050000",
"temperature30": {
"pseudo-mode": "heat",
"data": "2600500000012..."
},
"temperature16": {
"pseudo-mode": "cool",
"data": "2600b60067350c0f0b290b0f0b0f0b290c0e0c280c0e0c0e0c290b290b290b0f0c280c0e0c280c280c290b0f0b0f0b0f0b0f0c280c280c0e0c280c290b0f0b0f0b290c0e0c0e0c280c0e0c0f0b290b290b0f0b290c280c280c290b290b290b290c280c280c280c0f0b0f0b0f0b0f0b0f0b0f0c0e0c0e0c280c280c290b290b0f0b290c270d0e0c0e0c0e0c0f0b0f0b290b0f0b0f0b290c0e0c280c280c0f0b0f0b290b290c0e0c280c0e0c0e0c280c290b0f0b0f0b290c000d050000"
}
}
},
{
"name": "A/C Auto Switch",
"type": "switch"
},
{
"name": "Fan",
"type": "fan",
"data": {
"on": " b20026030c0f0c0f0c0e0c0f0c290d1b0d1b0d1c190f0c1c1a0e0d1b0d1b0d1c190f1a0e1a0e0d1c190f1a0e190f0d1b0d1b1a0e1a0f0c1c0c1c1a0e0d1b0d1b1b0e1a0e0c1c1a0e1a0f190f1a0e0c1c0d1b0d1b1a0e0d1b0d1c0c1c0c1c1a0e1a0e1a0e0d1c0c1c0c1c1a0e1a0e0d1b0d1b0d1c0c1c0c1c0c1c190f1a0e0d1c0c1b0d1b0d1c1a0e1a0e1a0e0d1b1a0f1a0e1a0e0c1c1a00010b0d0e0d0e0c0f0c0f0c0e0d0e0c0f0c0f0c0f0c0e0d0e0d280d1b0d1c0c1c1a0e0d1b1a0e0d1c0c1c0c1b1b0e1a0e1a0e0d1b1a0f1a0e1a0e0c1c0d1b1a0f1a0e0c1c0c1c1a0e0d1b0d1b1a0f1a0e0c1c1a0e1a0f190f1a0e0c1c0d1b0d1c190f0c1c0c1c0c1c0c1c1a0e1a0f190e0d1c0c1c0c1c1a0e1a0e0d1b0d1b0d1c0c1c0c1c0d1b1a0e1a0f0c1b0d1c0c1b0d1c190f1a0e1a0e0d1c1a0e190f1a0e0c1c1a00010c0c0f0c0e0c0f0d0e0c0e0d0e0d0e0c0f0c0f0c0e0d0e0d290c1b0d1b0d1c1a0e0d1b1a0e0d1b0d1c0c1c1a0e1a0e1a0f0c1c190f1a0e1a0e0d1b0d1c190f1a0e0c1c0d1b1a0e0d1c0c1c190f1a0e0d1b1a0e1a0f1a0e1a0e0c1c0d1c0c1b1a0f0c1c0c1c0c1c0c1c1a0e1a0e1a0f0c1c0c1c0c1c1a0e1a0e0d1c0c1c0c1c0c1c0c1c0c1c1a0e1a0e0d1c0c1c0c1c0c1c1a0e1a0e1a0f0c1c1a0e1a0e1a0e0d1b1a00010c0d0e0c0e0d0e0d0e0c0f0c0e0d0e0d0e0c0f0c0f0c0f0c280d1c0c1c0d1b1a0e0c1c1a0f0c1c0c1c0c1c1a0e1a0e1a0f0c1c190f1a0e1a0f0c1c0c1c1a0e1a0e0d1b0d1b1a0f0c1b0d1c190f1a0e0d1b1a0f190f1a0e1a0e0d1b0d1b0d1b1b0e0c1c0c1c0c1c0c1c1a0f190f1a0e0c1c0c1c0d1b1a0f190f0c1c0c1c0c1c0c1c0d1b0d1b1a0f190e0d1c0c1c0c1c0c1c1a0e1a0e1a0f0c1c1a0e1a0e1a0f0c1b1a00010c0c0f0c0f0c0f0c0e0c0f0c0f0c0e0d0e0d0e0c0f0c0e0d290c1c0c1c0d1b1a0f0c1b1a0f0c1c0c1c0c1c1a0e1a0e1a0f0c1c1a0e1a0e1a0f0c1c0c1c1a0e1a0f0c1c0c1b1a0f0c1c0d1b1a0e1a0e0d1c190f190f1a0e1a0e0d1b0d1c0c1c1a0e0c1c0d1b0d1b0d1b1a0f1a0e1a0e0c1c0c1c0d1b1a0f190f0c1c0c1c0d1b0d1b0d1b0d1b1a0f1a0e0d1b0c1c0d1b0d1b1a0e1a0f190f0c1c1a0e1a0e1b0e0c1c190005dc0c1c",
"off": "b2028403190f0c1c0c1c0c1c0c1d190f0b1d0c1c0c1c0c1c190f190f1a0e0c1d0b1c0c1c1a0f190f0c1c0c1c0c1c0c1c0c1c0c1c1a0e1a0f0c1c0c1c0c1c0c1c190f190f1a0f0b1c1a0f190f190f0c1c1900010c0c0f0c0f0b0f0c0f0c0f0c0e0d0e0c0f0c0f0c0e0d0e0c2a0b1d0c1c190f190f0c1c0c1c1a0f190f0b1d190f0c1c1a0e1a0f190f190f0c1c190f190f0c1c1a0e1a0f0c1c1a0e1a0e0c1d190e0c1d0c1c190f0c1c190f0c1d0b1c0c1c0c1c1a0e0c1d0c1c0c1c0c1c190f190f1a0f0b1d0b1c0d1c190f190f0c1c0c1c0c1c0c1c0c1c0c1c1a0f190f0b1d0c1c0c1c0c1c190f1a0e1a0e0d1c190f190f190f0c1c1a00010b0c0f0c0f0c0e0c0f0c0f0c0f0b0f0c0f0c0f0c0f0b0f0c2a0c1c0c1c190f1a0e0c1c0c1c1a0f190f0c1c190f0c1c1a0e1a0e1a0f190f0c1c190f1a0f0b1c1a0f190f0c1c190f1a0e0c1c1a0f0c1c0c1c190f0c1c190f0c1c0c1d0b1c0c1d190f0c1c0c1c0c1c0c1c190f190f1a0f0b1d0c1c0c1c190f190f0c1c0c1c0c1c0c1c0c1c0c1c1a0f190f0c1c0c1c0c1c0c1c190f190f1a0f0b1d190f190f1a0e0c1c1a00010b0c0f0c0f0c0e0c0f0c0f0c0f0c0e0c0f0c0f0c0f0c0f0b2a0c1c0c1c190f190f0c1c0c1c1a0f190f0c1c190f0c1c1a0e1a0f190f190f0c1c1a0e1a0e0d1c190f190f0c1c1a0e1a0e0d1c190f0c1c0c1c190f0c1c1a0e0c1d0c1b0d1c0c1c190f0c1c0c1c0c1c0c1c190f1a0e1a0f0c1b0c1d0c1c190f190f0c1c0c1d0b1c0c1d0b1d0b1d190f190f0c1c0c1c0c1c0c1c1a0e1a0e1a0f0c1c190f190f190f0c1c1a00010b0c0f0c0f0c0f0b0f0c0f0c0f0c0f0c0e0c0f0c0f0c0f0c290c1c0c1c190f190f0c1d0c1b1a0f190f0c1c190f0c1c1a0f190f190f190f0c1c1a0f190f0b1d190f190f0c1c1a0e1a0f0c1c190f0c1c0c1c190f0c1c1a0f0b1d0c1b0d1c0c1c190f0c1c0c1c0c1c0c1c190f1a0f190f0c1c0c1c0c1c190f1a0e0c1d0c1b0d1c0b1c0d1c0c1b1a0f190f0c1c0c1c0c1c0c1c1a0e1a0f190f0c1c190f1a0e1a0e0c1d1900010c0b0f0c0f0c0f0c0e0d0e0c0f0c0f0c0e0c0f0c0f0c0f0c290c1c0c1c190f1a0f0c1b0d1c190f190f0c1c1a0e0c1d190f190f190f1a0e0c1d190f190f0c1c190f190f0c1d190f190f0c1c190f0c1c0c1c1a0e0c1c1a0f0c1c0c1c0c1c0c1c190f0c1c0c1c0c1c0c1c1a0f190f190f0c1d0b1c0c1c1a0e1a0f0c1c0c1c0c1c0c1c0c1c0c1c190f1a0e0c1c0c1d0b1c0c1c1a0f190f190f0c1c1a0e1a0f190f0c1c190005dc00000000",
"swingToggle": "2600500000012...",
"fanSpeed10": "2600500000012...",
"fanSpeed20": "2600500000012...",
"fanSpeed30": "2600500000012...",
"fanSpeed40": "2600500000012...",
"fanSpeed50": "2600500000012...",
"fanSpeed60": "2600500000012...",
"fanSpeed70": "2600500000012...",
"fanSpeed80": "2600500000012...",
"fanSpeed90": "2600500000012...",
"fanSpeed100": "2600500000012..."
}
},
{
"name": "Garage Door",
"type": "garage-door-opener",
"openCloseDuration": 8,
"data": {
"open": "2600500000012...",
"close": "2600500000012...",
"lock": "2600500000012...",
"unlock": "2600500000012..."
}
},
{
"name": "Blind",
"type": "window-covering",
"totalDurationOpen": 45,
"totalDurationClose": 40,
"data": {
"open": "2600500000012...",
"close": "2600500000012...",
"stop": "2600500000012..."
}
}
]
}]
}

WiFi Box LED

Hi! I have the V3 box. Is there a way to get the LED to show as a Light in Homekit? Do I need to add something to my config..

Thanks,

Sam

Unable to use basic and complex functions on my LED strip

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

Milight iBox led light

The iBox has his own light. I am not able to control that light in any way. Am I doing something wrong or is this not implemented jet?

Sunrise?

Hi,

I'm about to pull the trigger on MiLight (they are the only cheap ones that have E14 bulbs).
And I want to know if it is possible to set a time that activates a sunrise-function (wakeup).
Is this possible with the MiLight and homebridge-milight?

Thank you!

Wall Switch Option

Hello dotsam. I found you code some weeks ago and it is working so nice that I started thinking in newer possibilities, but I am really new working with homebrigde.
I was thinking about making an additional command when turning the lights on and off the milights to drive a relay (powered by an ESP8266) through HTTP, this way we could better control the on/off state through home app, because without it the wall switch must be always on.
As I have several "traditional" bulbs in my room, along with the milights, I already have an ESP8266 working as a smart switch.

Do you have any idea if this is something difficult to implement? I will do some tests and try to make it work...

Thanks for the nice plugin you developed.

Can't get my bulb working.

Hi, i have a controller MiLight (not sure which version it is) but i can't get it working.
I tried setting it up in the json file with all the bridge's type (fullColor, rgbw...).
I get an "Unhandled rejection Error: no response timeout" when starting the server.
The bulb lights up for a second or less when i tap on the accessory in homekit. But this does not happen every time i tap on the app. It seems to be random.

this is my internet controller.
https://www.google.it/search?q=milight+controller&client=ubuntu&hs=PR9&channel=fs&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjowJyrqrrSAhWCaxQKHdKqAwcQ_AUICSgC&biw=1920&bih=946#imgrc=dCqhUOO178bYCM:

Unhandled rejection Error

I updated to the latest version on homebridge (0.4.32) and it seems to have broken my milight plugin. Here is the error code I get when launching homebridge:

Unhandled rejection Error: no response timeout at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-milight/node_modules/node-milight-promise/src/milight-v6-mixin.js:125:26) at ontimeout (timers.js:475:11) at tryOnTimeout (timers.js:310:5) at Timer.listOnTimeout (timers.js:270:5)

I tried restarting all my milight bridges and receivers but that did nothing. Hopefully somebody has a solution.

Thanks

Same Hostname, Different Ports Doesn't work

When I had my config file as this, controlling something like "Bedroom Lamp" actually controlled "Disco Light"-- so device #1 on the second bridge actually controlled device #1 on the first bridge. ("Bedroom Lamp" also controlled itself correctly) The bridge is run by https://github.com/sidoh/esp8266_milight_hub and I've created 2 virtual UDP bridges.

It looks like if I used the same hostname, but 2 different ports, the plugin treated them as the same. My workaround was to give one bridge milight-hub as it's hostname and let it resolve off local DNS, and the other milight-hub.local and have it resolve via Bonjour (both to the same address, if everything goes right).

Thanks !!

  {
       "platform": "MiLight",
       "name": "MiLight",
       "bridges": [
         {
           "ip_address": "milight-hub.local",
           "port": 8899,
           "version": "v5",
           "lights": {
             "rgbw": [
               "Disco Light",
               "Bedroom Strip",
               "Mood light",
               "Computer Light"
             ]
           },
           "repeat": 3,
           "delay": 100
         },
         {
           "ip_address": "milight-hub.local",
           "version": "v5",
           "port": 8898,
           "lights": {
             "rgbw": [
               "Bedroom Lamp",
               "Staircase Light",
               null,
               null
             ]
           },
           "repeat": 3,
           "delay": 100
         }
       ]
     },
/var/homebridge$ sudo npm list -g homebridge-milight
/usr/lib
└── [email protected] 

Error in Logs and other color issues

I am getting the following error in my logs at startup:

Jul 22 16:07:38 pi homebridge[19564]: Unhandled rejection Error: no response timeout
Jul 22 16:07:38 pi homebridge[19564]: at Timeout._onTimeout (/usr/lib/node_modules/homebridge-milight/node_modules/node-milight-promise/src/milight-v6-mixin.js:123:26)
Jul 22 16:07:38 pi homebridge[19564]: at ontimeout (timers.js:488:11)
Jul 22 16:07:38 pi homebridge[19564]: at tryOnTimeout (timers.js:323:5)
Jul 22 16:07:38 pi homebridge[19564]: at Timer.listOnTimeout (timers.js:283:5)

Additionally, when i use siri to turn the color of the lights, only the first 'fullcolor' zone turns color. I have to give the command again for the rest of the lights to make them turn color. And at times when i say (for ex.) "make all the lighs blue", it takes almost 4-8 seconds for lights to turn blue zone by zone and then at least one zone is left unchanged. When i give the same command again the zone that was left unturned, turns blue this time. Please let me know if youd like a video of the same in any specific order of commands to help me out.

heres my config.json:

"platforms": [{
		"platform": "MiLight",
		"name": "Lights",
		"bridges": [{
				"ip_address": "172.20.1.99",
				"version": "v6",
				"lights": {
					"rgbw": ["Foyer", "Lobby", "Bedroom Mirror", "Picture"],
					"fullColor": ["Cove", "Chandelier", "Kitchen", "Wash"]
				},
				"repeat": 1,
				"delay": 30
			},
		]
	},

Also, when changing the color back to white, most of the time i need to give the command twice otherwise some of the zones change to a dim orange and stay that way.

Would appreciate any help! thanks!

Send fewer "on" commands

We should be able to keep track of the last bulb (type + zone) we sent a command to, and not re-send the "on" command if we're not targeting a different bulb with the next command. This means one less command in the queue, which should make all subsequent commands faster.

White light from RGB and RGBW

My rgb strips and rgbw bulbs are showing up fine in all my HomeKit apps. Awesome! But I can NOT figure out what I've done wrong in my config or what doc I didn't read that explains why I can't set their colors to white.
My rgb strips do a pretty good job of pretending they're white LED's. But There's no white in the color pickers for those strips in any of the HomeKit apps I've tried. My bulbs produce a great white, but, again, I can't figure out how to set them to white mode in any of my apps.
Is this due to a mistake in my config? Or am I using the apps wrong when setting my milights? Or is white not currently supported? I'm thrilled with what the plugin is already doing for me. I just want to make sure I'm using it properly and getting the most from it.

Cant get the lights working

I'm using homebridge quite long now. Today my mi lights arrived and I tried to make them work with homebridge, but nothing I do gets them to work.
But I'm also not sure what type of lights I have. I ordered those:
https://www.aliexpress.com/item/4pcs-9W-E27-LED-RGBCW-or-RGBWW-bulb-Milight-AC85-265V-Four-Zone-Remote-WiFi-Controller/32653225173.html?spm=2114.13010608.0.0.d0GZUz

So I guess those are the rgbw ones. If I change them to fullColor in the config, I get no response from any device. With the setting below I can use everything as usual but the mmi lights don't work. I can't turn them off, nor change color...
Also I don't know the names of the bulbs. I named them Zone1 - 4 because they are called that way in the "Mi-Light 3" App.

I hope someone can help me. Without homebridge they do work btw...
I tried adding the IP of the bridge, but that didn't change a thing.

{
"platform":"MiLight",
"name":"MiLight",
"bridges": [{
"lights": {
"rgbw": ["Zone1", "Zone2", "Zone3", "Zone4"]
}
}

[Feature] Support TCP protocol

Especially with the old v3 (and older) version of the Milight boxes the UDP protocol leaves much to be desired as - depending on the network connection - it often misses packets and the lights don't react properly.

Most base stations allow switching to the TCP protocol via the web interface. This should maybe allow a more stable connection.

Thanks for this plugin, it really is a center piece of my HomeKit setup.

single bulb not supported in Homekit

I've expanded my set up, adding in a second iBox, and updating my config file.

Prior to this, after a recent reset, one bulb in my set up would not be recognised by the Home app. It would appear in the home app in "Default room" state that it wasn't supported by Homekit, and was uneditable, so could not be removed.

I hoped that this would be resolved when I added the second iBox. I moved the affected bulb from iBox 1 to 2, and it worked! I completed set up, and just realised that the iBox 2 itself is now showing the same issue. the bulb linked through it now works fine, but the iBox 2 itself now shows in default room in home app, and says its not supported by home kit. Its again unlovable, and unediteable.

Below, the "Null" on the rgbw line of ip..101 is where the problem bulb previously was.
once that bulb was moved to iBox 2 and renamed Ella, it now works.
now its the bridge labelled "Lilli" that doesn't load in home App.

Both times, they've worked fine in the milight app.

{
"platform":"MiLight",
"name":"MiLight",
"bridges": [
{
"ip_address": "192.168.0.101",
"version": "v6",
"lights": {"bridge": ["ibox"],
"fullColor": [null,"Bedroom",null,null],
"rgbw": ["Kitchen","Sittingroom","Corner lamp",null]},
"repeat": 1,
"delay": 30
},
{
"ip_address": "192.168.0.24",
"version": "v6",
"lights": {"bridge": ["Lilli"],
"rgbw": [null,null,null,"Ella"]},
"repeat": 1,
"delay": 30
}

img_7074

Any ideas? quite confused that it moved to another bulb on a different bridge.

Wrong Saturation/Brightness/Colour

In my setup (1 RasPi, 1 iBox2, 2 RGB Controller, 2 IKEA Dioder) everything works fine, but the staturation is wrong. Also setting the colourwheel to white, changes the LED to red. Setting it slightly beside the center activates the white mode, but the brightness is set too low. So i have to increase the brightness manually to get the full white mode.

pjimage

pjimage 1

semi working

Hi

im having trouble changeing the color with the siri commands, its working fine in the homeasistent, it keeps saying its not supported

i have a v5 and v6 (ibox2) brigde

my bulbs are gu10 rgbw (not cct model) i cant figure out if the problem is with homebridge or milight plugins

any advice

here is my config

"ip_address": "172.16.10.227",
"version": "v6",
"lights": {"fullColor": ["Kitchen",null,"Bedroom","Hallway"],
"rgbw": ["Living Room", "Downstairs Bedroom"]},
"repeat": 1,
"delay": 100

/ Stainless

Unhandled rejection Error: no response timeout

I found this code after I done every thing and the homebridge isnt appear in my home app
any idea about this issue
Thanks,

Unhandled rejection Error: no response timeout at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-milight/node_modules/node-milight-promise/src/milight-v6-mixin.js:125:26) at ontimeout (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout (timers.js:207:5)

Support For Disco Mode?

Hi All,

This isn't really an "issue" per se, but I haven't seen much talk about supporting the built in "Disco Mode" for MiLight, or even if we could define "custom" modes, such as fading from one color to another and so on and so forth.

If this isn't the correct place to be asking this question, feel free to close the issue, but I've been using this plugin for a while and am looking for ways to extend it further.

Thanks!

Support white colour temperature setting on fullColor bulbs

There is currently no standard HomeKit characteristic for colour temperature. The Apple Home app has a colour picker for "temperature", but this actually only sets an HSV value, with no way to separate is from a command setting another colour.

The Philips Hue bridge v2 implements the custom characteristic E887EF67-509A-552D-A138-3DA215050F46 for colour temperature, and a handful of apps support this now. I'll likely try to implement this with that characteristic, as ebaauw/homebridge-hue#35 does. Hopefully this will be an official characteristic in the future.

Several V6 questions

Hello!

I am currently experiencing some bugginess using some milight v6 bulbs. Please know that I do not have much experience with coding.

  1. It seems when asking Siri to change the color of any given light, that a hue command of 0 is sent first. For instance, if the light is currently in white mode and you ask Siri to change the lights to blue- the lights will momentarily flash to a hue of 0(a near red- magenta color) before changing to blue. Occasionally, some groups would not even finish the chain of commands leaving some bulbs stuck on the magenta color. Is there a way to get around the hue 0 command and have the lights go directly to the hue value of the color required?

  2. Speaking of the extra hue command. In this, I have learned that the v6 bulbs do not view solid red as a hue of 0 but instead the afforementioned near red, magenta color is represented (in using the stock milight app, I've found a hue of 10 or so to be 'true' red). This threw me off when I asked Siri for red and the result was magenta. Is it possible to program red as starting at a Hue of 10-11 rather than zero?

  3. Does Siri understand any form of color temperature commands? Or is there a better app that the standard apple "Home" app to use in conjunction with Milight and Homebridge?

3b) I would like to have my milight v6s change color temp throughout the day to match the temp of the sunlight coming in the windows. How could I best do this? I tried to use scenes (Scene Warm White, Scene Cool White, Scene Natural White) but the scenes would not correctly recall the color- most of the time, the lights would end up in a color mode that was way off from the target color.

3c) If the two priors are not options, is it possible to customize the "default" white color temperature? Perhaps something a bit warmer? Is this something the end users could control via their config file? Even specifying custom color temps per each individual v6 bridge?

Thanks in advance,

Dusty
trying to both have and eat my cake

Config.json error

Hello, i'm Felix and completely new to using Ubuntu.

I've tried to install homebridge and get that to work with MiLight, only i can't seem to get the config.json file right.

*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[11/4/2017, 2:35:19 PM] Loaded plugin: homebridge-milight
[11/4/2017, 2:35:19 PM] Registering platform 'homebridge-milight.MiLight'
[11/4/2017, 2:35:19 PM] ---
[11/4/2017, 2:35:19 PM] There was a problem reading your config.json file.
[11/4/2017, 2:35:19 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[11/4/2017, 2:35:19 PM]
/usr/local/lib/node_modules/homebridge/lib/server.js:206
throw err;
^

SyntaxError: Unexpected token : in JSON at position 11
at Object.parse (native)
at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:200:19)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:57:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:496:3

Here is my config.json file.

"platforms": [
{
"platform":"MiLight",
"name":"MiLight",
"bridges": [
{
"ip_address": "192.168.1.12,
"type": "rgbw",
"zones": ["1","2","3","4"],
"repeat": 1,
"delay": 100
},
{
"ip_address": "10.0.1.4",
"type": "white",
"zones": ["1","2","3","4"],
"repeat": 1
}]
}
]

I do not understand what i'm doing wrong and how it can be fixed. I've searched the entire web but haven't gotten an single answer.

Thanks for your time!

CW/WW led strip controller color temperature

Hello, I have issue.(Partly associated with Issue #20 )
How I can adjust Kelvin(color temperature) via HomeKit for CW/WW led strip controller?
Now I can adjust only brightness and turn on, turn off the lamp.
In HomeKit, there is a color adjustment tab (RGB), but when I choose white color it changes lamp color to white (as it should be) - in HomeBridge log it looks like -

[MiLight] [Lamp] Setting hue to 0
[MiLight] [Lamp] Saturation set to 0, setting bulb to white

Any other value other than 0 does not work.

Works as a "fullcolor" simultaneously for two LED controllers (RGB and CW/WW),
RGB - fully correctly works.
CW/WW - working, but not adjustable color temperature.(problem!)

{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:31",
"port": 55141,
"pin": "031-45-155"
},
"platforms": [{
"platform": "MiLight",
"name": "MiLight",
"bridges": [{
"ip_address": "192.168.1.242",
"version": "v6",
"zone": "1",
"lights": {
"bridge": ["Router"],
"fullColor": ["Lamp", "Strip"]
},
"repeat": 1,
"delay": 30
}]
}]
}

Thank you.

Turn on to night mode

I was hoping to use night mode along with some sensors and the new automation setting in iOS11 to bring the lights on to night mode when motion is detected during the night (for example to light the way to the bathroom) but setting a Milight button to <5 doesn't initiate night mode rather that last setting that the light was on.

Am I not doing something right?

Missing red

Hi again,

beside the question, why someone would set his light to "red", i noticed, that it is not possible via siri voice command.

Reading the source the root cause becomes obvious. However, is it really correct to determine white mode on the hue=0?

Should'nt it be saturation=0, while every saturation >0 returns to last hue?

Best
Michael

Lights not working

Hello,
yesterday i installed homebridge and the milight addon.
Now i can see the two lamps in the home app, but i cant controll them.
I can controll them over the MiLight iPhone App and the remote.
Its an v6 Bridge with RGB-LED-Strip-Controllers

My code is:
{ "platform":"MiLight", "name":"MiLight", "bridges": [ { "ip_address": "192.168.178.145", "version": "v6", "lights": {"rgbw": ["Bett", "Tisch"]}, "repeat": 1, "delay": 100 } ] }
What do i have to set in the bridge? UDP and port 5987 right?

Zone assignement

Hi,

the plugin is working, thanks!
I want to understand how the zone assignement is done.

When I configure (json.config) living "room lamp" how is the mapping to the right lamp in my living room done?

regards

Milight (v6) Controller - Set protocol to UDP

Hi,

This is not really an issue but more of a heads-up/reminder as this does not seem to be mentioned in the installation/readme files.
So perhaps this is noteworthy enough to add it to the read-me files or installation information.

Both a friend of mine and myself have Milight v6 controller bridges and raspberry pi's with homebridge installed. However we both could not get the homebridge-milight plugin to work, the requests were being sent (without any errors in debug mode) to the controller but nothing happend.

We've just found the problem, the controllers were set up to use the TCP protocol in its settings, however the plugin sends the requests using UDP.

If you go the the (web) admin panel of the milight controller by surfing to its ip address: 192.168.x.x and logging in with admin/admin, you can go to the "Other setting" tab and set the protocol to UDP, after doing so you get the option to reboot the controller which you should do.

After that everything worked and we're now able to control the lights using SIRI.

Screenshot of the web-admin setting:
schermafbeelding 2017-02-12 om 14 53 53

Color toggling issue

Hi,
I have 1 RGBW bulb connected to a V6 bridge. I have set two scenes in Homekit (Bedroom Lights , Night Lights)
Bedroom Light --> Color White , Brightness 100%
Night Light --> Color Blue , Brightness 6%

When i select the Bedroom Light the bulb turn white 100%, when I click on the Night Light bulb becomes Blue 6%, But when I click back on Bedroom the bulb switch to white 6% not 100%. To make the brightness 100% have to toggle on/off the Bedroom light.

Do you have any advice to solve the issue please?

cannot run home bridge

This is my error message

events.js:160
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at Server._listen2 (net.js:1257:14)
at listen (net.js:1293:10)
at Server.listen (net.js:1389:5)
at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:496:16)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:91:10)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)

any ideas?

WW/CW LED Strip Controller not working

Sorry to create an issue for this!
I have a problems getting the following setup to work (please excuse my english):

Hardware: Milight Bridge ibox2 + WW/CW Led Strip Controller + home bridge (running on a raspberry pi):

The relevant part of my config.json looks like this:

{
"platform":"MiLight",
"name":"MiLight",
"bridges":
[
{
"ip_address": "192.168.178.31",
"version": "v6",
"lights": {
"white": ["Light"]
},
"repeat": 1,
"delay": 300
}
]
}

Using the milight app the control of the LED Strip works just fine.
But when I use home bridge I get the following issue:

The lamp is shown in the iOS homekit app (strangely as an device wich can also change colors). I can dim/turn off/on the light in the home kit app, but there is no change of the lamp...
I already tried changing the delay etc...but no change...

Maybe there is no support of the WW/CC LED Strip Controller yet?

Thanks in advance for any idea to solve the problem!!!

Can't control but app + remote works

Hello,
I have ...

I attached an image which shows my setup.
Control via iPhone app and the Mi-Light remote works fine.
My config.json contains these relevant lines:

         {
            "platform":"MiLight",
            "name":"MiLight",
            "repeat": 3,
            "delay": 80,
            "bridges": [
              {
                "ip_address": "192.168.178.93",
                "lights": {"rgbw": ["Zimmer"]}
              }
            ]
        },

I tried all versions (v1-6), rgb and rgbw but nothing works.
I don't know now what I should do. I tried almost everything from the other issues.
Thank you for your help I hope you guys now a solution.

img_1747

Combining 2 lights in 1 config

Hi there

I own a v3 wifi controller + 1 rgbw bulb and 1 rgb ledstrip controller.
Both work fine trough the milight app. (button 1 bulb, button 2 strip.)
But i only get 1 working trough homekit.

this is the current config: (gang = the bulb & kast is the strip)
{
"platform": "MiLight",
"name": "MiLight",
"bridges": [
{
"ip_address": "192.168.2.14",
"version": "v3",
"lights": {
"rgbw": [
"Gang"
],
"rgb": [
null,
"Kast"
]
},
"repeat": 1,
"delay": 30
}
]
},

using more then one wlan bridge

Hi Sam.

thanks for answering my last question.
Is it possible to use (include) a second or third ulna bridge. I'm considering to by a second one.

thanks

Switching between white and color

Hi,

First of all I gotta say, you app works great, and super easy to implement, so thanks for that.

Second thing, I noticed that on my 'Home' app, when I switch between white color to RGB color I have to push the button twice for that to happen, it's not happening when I switch from RGB to white but only from white to color, that is weird, even between colors it works perfectly, only one press and it changes.
the fact that I have to turn it on twice makes it a bit hard to change to a scene with color when the bulb was white before. I have tried to set different values for the "delay" and "repeat" but nothing seems to work, any idea? does anyone else experienced it?

and one last thing, once in a while when I'm playing with my 'Home' app, I noticed that instead of changing the bulb to the color or brightness that I wanted, it just switch it to purple for some reason. that only happen sometimes and it might be related somehow to the first problem since it only happens when I play to much with tuning on and off and changing colors.

Please, your help!

Config

Hello,

Sorry to create an issue for this! I am not having much luck getting the config to recognise my setup.

I have just purchased a new MiLight hub (I think it's called a v3 with the built in light?). I have two bulbs which are setup as Zone 1 & 2 in the MiLight app. One is an RGBW 5w bulb and the other a 9W RGBW bulb.

Whilst the plugin runs, I end up with one switch called "MiLight" which when toggled, switches on and off repeatedly but doesn't actually change any of the lights.

I read the v3 MiLight was still in development, but I can't seem to have any luck.

{
   "bridge":{
      "name":"Homebridge",
      "username":"CC:22:3D:E3:CE:30",
      "port":51826,
      "pin":"031-45-154"
   },
   "description":"Homebridge",
   "accessories":[
      {
         "accessory":"WeMo",
         "name":"HP Printer",
         "wemo_name":"WeMo Switch"
      }
   ],
   "platforms":[
      {
         "platform":"Camera-ffmpeg",
         "cameras":[
            {
               "name":"Room",
               "videoConfig":{
                  "source":"-re -f avfoundation -framerate 30 -video_size 1280x720 -i 0:0",
                  "maxStreams":2,
                  "maxWidth":1280,
                  "maxHeight":720,
                  "maxFPS":30
               }
            }
         ]
      },
      {
         "platform":"People",
         "threshold":15,
         "anyoneSensor":true,
         "nooneSensor":true,
         "webhookPort":51828,
         "cacheDirectory":"./.node-persist/storage",
         "pingInterval":10000,
         "ignoreReEnterExitSeconds":0,
         "people":[
            {
               "name":"Alvin",
               "target":"192.168.1.86",
               "threshold":15,
               "pingInterval":10000,
               "ignoreReEnterExitSeconds":0
            },
            {
               "name":"Simon",
               "target":"192.168.1.217",
               "threshold":15,
               "pingInterval":10000,
               "ignoreReEnterExitSeconds":0
            },
            {
               "name":"Theodore",
               "target":"192.168.1.125",
               "threshold":15,
               "pingInterval":10000,
               "ignoreReEnterExitSeconds":0
            },
            {
               "name":"Chipmunks",
               "target":"192.168.1.115",
               "threshold":15,
               "pingInterval":10000,
               "ignoreReEnterExitSeconds":0
            }
         ]
      },
      {
         "platform":"cmdSwitch2",
         "switches":[
            {
               "name":"Kettle",
               "on_cmd":"/Users/churchserver/iBrew/ibrewlegacy heat 192.168.1.5",
               "off_cmd":"/Users/churchserver/iBrew/ibrewlegacy stop 192.168.1.5",
               "state_cmd":"/Users/churchserver/iBrew/ibrewlegacy status 192.168.1.5 | grep 'Heating water 100ºC selected'",
               "polling":true,
               "interval":10
            },
            {
               "name":"TV",
               "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c PowerToshiba"
            },
            {
               "name":"Amp",
               "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c PowerAmplifier"
            },
            {
               "name":"Mute TV",
               "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c MuteTV"
            },
            {
               "name":"Wake ATV",
               "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c WakeATV"
            },
            {
               "name":"Mute Amp",
               "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c MuteAmp"
            },
            {
               "platform":"MiLight",
               "name":"MiLight",
               "bridges":[
                  {
                     "ip_address":"255.255.255.255",
                     "lights": {"rgbw": ["Bedroom Light"],
                                "rgbw": ["Bedroom Lamp"]},
                     "repeat":1,
                     "delay":30
                  }
               ]
            }
         ]
      }
   ]
}

basic usage question

I am using the homebridge plugin to home-assistant...

I have this plugin installed but dont have it defined in the homebridge config.json and it seems to work ok... although this plugin can do more and acts differently than home-assistant.. i.e. night light mode

so my question...

provided the 'main' control layer is home assistant.. .should the only config device in the homebridge config.json be home assistant.. i.e. will adding home bridge-milight to the config.json interfere with the functions and sync to home assistant?

I would love to be able to get all the features that are provided here light nightlight mode.. and possibly the bulb 'disco modes' etc.. right now home assistant has basic milight function, on-off, color and starturation

its one glaring issue is that the new versions of the bridge allow 4 groups of every bulb type and home-assistant seems to get confused.. ie when I have bulbs on rgbww 1 and white 1 their functions sometimes collide

anywho.. thanks for those that take the time to weigh in and give me a best practices setup for this ...

Command Queuing

Many HomeKit applications send out commands at a very quick rate (ie. using a brightness slider, and sending every brightness value that the user moves over). With the way the MiLight protocol works and the way the node-milight-promise library queues commands, this becomes an issue.

Need to figure out the best way to handle this to improve responsiveness. Some way of throwing away excess commands.

lights not responsive

could you please assist with regards to getting this work and take a look at the code below that I have:

{
"platform": "MiLight",
"name": "MiLight",
"bridges": [
{
"ip_address": "X.X.X.X",
"version": "v5",
"port": 8899,
"lights": {"rgbw": [ "Lego Lamp"]
},
"repeat": 1,
"delay": 100
}

do have my IP address off the bridge listed just removed from this post, the light shows up in the Home App and works accordingly in this app, but the light doesnt actually change.

I dont have any other lamps in the zones and did try using: ["null", "null" , "null", "Lego Lamp"]
but this resulted in Homebridge actually not starting

using the Limiless LED app the light is responsive and does work using this app

I do have harmony hub , wemo plugs, all setup and working so know home bridge works , just cant seam to get the Limitless LED's to work

any help and advise with this would be greatly appreciated

Lost Commands

Hi dotsam,

this might be dupe to the command quing bug, but I#m not sure there. In case i steer my milights "one by one", the plugin works perfectly fine. However, in "complex" scenarios, where i want to set all 4 lights of one wifi controler to different states & settings, commands get lost.

I read a bit in the source code. In the way the MilightController handles promises in send_request, this should be just impossible to happen.

But than i noticed, that in the implementation MiLightAccessory() in your plugin, you are creating a milight controller per lamp, not per bridge.

So in my case with 3 lamps at one wifi controller, the MilightController will exist three times.

Wouldn't this cause parallel commands to the 3 lamps to be send as 3 parallel requests, instead of a proper serialization?

I cant do it by myself, but i would rather recommend to create new MilightController once in then _addLamps function, and pass it to the MiLightAccessory as a parameter.

Best
Michael

Newby problem, Eve cant read LED Bulb Status

Hello,

I´m a Newby with raspberry and I have an Issue with my milight setup.

I have an raspberry with zwave Modul and homebridge link.

The Milight bulb work in Eve and send corret commands to my RGBW Bulbs.

But EVE cant read the Status of the Bulbs correct.

When i turn the bulb on and restart the homebridge server than eve says the Bulb is off but the Bulb still lighning.

Is there a worktrough to get the right Status off my Light Bulb?

Best regards
Bob

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.