Closed samsonrosen closed 7 years ago
Hi @samsonrosen, it looks like there's some confusion around the naming of the versions of the WiFi bridges. What milight.com is calling the 3.0 bridge is what others are calling the v6 bridge, and as such, you should include "version": "v6"
in your config. Your lights should also be configured as such: "lights": {"rgbw": ["Bedroom Light", "Bedroom Lamp"]}
(although I think you may have problems controlling these individually with Siri with such similar names)
Hi,
Thanks for the fast response! I have changed the config as so but I am actually still getting the same result. One switch appears (simply an on off switch) which forever toggles itself on and off but without affecting either bulb.
I've attached my current config again, alongside the terminal output.
I also double checked I am running 0.16
Church-Server:~ churchserver$ npm -g list homebridge-milight
/usr/local/lib
└── homebridge-milight@0.1.6
These are the two bulbs I have:
http://shop.easybulb.com/easybulb-5w-rgbw-e14-screw-iphone-ios-android-controlled-light/
{
"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":"Sam's 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": "192.168.1.100",
"version": "v6",
"lights": {"rgbw": ["Light","Side Light"]},
"repeat": 1,
"delay": 30
}
]
}
]
}
]
}
Church-Server:~ churchserver$ homebridge
[1/12/2017, 3:19:21 AM] Loaded plugin: homebridge-camera-ffmpeg
[1/12/2017, 3:19:21 AM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[1/12/2017, 3:19:21 AM] ---
[1/12/2017, 3:19:21 AM] Loaded plugin: homebridge-cmdswitch2
[1/12/2017, 3:19:21 AM] Registering platform 'homebridge-cmdswitch2.cmdSwitch2'
[1/12/2017, 3:19:21 AM] ---
[1/12/2017, 3:19:21 AM] Loaded plugin: homebridge-milight
[1/12/2017, 3:19:21 AM] Registering platform 'homebridge-milight.MiLight'
[1/12/2017, 3:19:21 AM] ---
[1/12/2017, 3:19:21 AM] Loaded plugin: homebridge-people
[1/12/2017, 3:19:21 AM] Registering platform 'homebridge-people.People'
[1/12/2017, 3:19:21 AM] Registering accessory 'homebridge-people.PeopleAccessory'
[1/12/2017, 3:19:21 AM] Registering accessory 'homebridge-people.PeopleAllAccessory'
[1/12/2017, 3:19:21 AM] ---
[1/12/2017, 3:19:21 AM] Loaded plugin: homebridge-wemo
[1/12/2017, 3:19:21 AM] Registering accessory 'homebridge-wemo.WeMo'
[1/12/2017, 3:19:21 AM] ---
[1/12/2017, 3:19:21 AM] Loaded config.json with 1 accessories and 3 platforms.
[1/12/2017, 3:19:21 AM] ---
[1/12/2017, 3:19:21 AM] Loading 3 platforms...
[1/12/2017, 3:19:21 AM] Initializing Camera-ffmpeg platform...
[1/12/2017, 3:19:21 AM] Initializing People platform...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Sam'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Stuart'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Kit'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Laurence'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Anyone'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'No One'...
[1/12/2017, 3:19:21 AM] WebHook: Started server on port '51828'.
[1/12/2017, 3:19:21 AM] Initializing cmdSwitch2 platform...
[1/12/2017, 3:19:21 AM] Loading 1 accessories...
[1/12/2017, 3:19:21 AM] [HP Printer] Initializing WeMo accessory...
[1/12/2017, 3:19:21 AM] [HP Printer] Searching for WeMo device with exact name 'WeMo Switch'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Kettle'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'TV'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Amp'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Mute TV'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Wake ATV'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'Mute Amp'...
[1/12/2017, 3:19:21 AM] Initializing platform accessory 'MiLight'...
[1/12/2017, 3:19:21 AM] Homebridge is running on port 51826.
[1/12/2017, 3:19:21 AM] Sam's Room is running on port 54956.
[1/12/2017, 3:19:21 AM] MiLight is off.
[1/12/2017, 3:19:21 AM] Mute Amp is off.
[1/12/2017, 3:19:21 AM] Wake ATV is off.
[1/12/2017, 3:19:21 AM] Mute TV is off.
[1/12/2017, 3:19:21 AM] Amp is off.
[1/12/2017, 3:19:21 AM] TV is off.
[1/12/2017, 3:19:22 AM] [HP Printer] Found 'WeMo Switch' device at 192.168.1.227
[1/12/2017, 3:19:35 AM] [HP Printer] Getting power state on the 'WeMo Switch'...
[1/12/2017, 3:19:35 AM] [HP Printer] Power state for the 'WeMo Switch' is 1
Tried the following config, but still only get 'MiLight' appearing in the home app.
{
"platform": "MiLight",
"name": "MiLight",
"bridges": [
{
"ip_address": "255.255.255.255",
"version": "v6",
"lights": {"fullColor": ["Light"],
"rgbw": ["Lamp"]},
"repeat": 1,
"delay": 30
}
@samsonrosen Just took a closer look at your config, and it looks like you've put the MiLight platform config within the switches
array for the cmdSwitch2 platform. You'll have to bump it back out to the root of the platforms
object.
Gosh, I'm terrible at this! Thank you so much looking over my rubbish config.
Turn out both my bulbs are RGBW. It works really well!
Did I read somewhere it's possible to get the LED Light in the MiLight Bridge acting as a bulb?
Thanks again!!
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.