Closed BuckarooToo closed 6 years ago
Can you provide your config.json file?
Of course:
{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" },
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
"platforms": [
{
"platform": "Indigo",
"name": "My Indigo Server",
"protocol": "http",
"host": "192.168.1.10",
"port": "8176",
"path": "",
"includeActions": true,
"treatAsSwitchIds": [ "556887433", "1552946438", "1907923708" ],
"accessoryNamePrefix": "Indigo ",
"listenPort": 8177
},
{
"platform": "HarmonyHub",
"name": "Harmony Hub"
},
{
"platform": "LiftMaster2",
"username": "xxxxx@xxxx.xxx",
"password": "xxxxxxxx"
},
{
"platform": "WeatherStation",
"name": "Weather Station",
"interval": "15",
"key": "xxxxxxxxxxxxx",
"location": "xxxxx",
"forecast": "3days"
}
] }
The accessories being treated as SwitchIds are all ICON Relay Switches. The LampLincV2 is the only INSTEON device that I have allowed for communication and display in Indigo that is not a switch.
Thanks for looking at this.
Thanks. I wanted to make sure you weren't treating it as a switch. Can you send me the homebridge log that includes output from when it first starts up as well as when you turn the lamp on/off. Please let me know the name and ID of the lamp device in Indigo as well. Thanks.
Need a little help - where will I find the log? (for that matter, do I need to enable it?)
That depends on how you have setup homebridge on your computer. What directions did you follow? If you're just running it on the command line, the output is printed out in the terminal window. Otherwise, it depends on how you have it setup to run.
Command line. Here you go ...
pi@raspberrypi:~ $ homebridge 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 [2017-12-22 12:27:27] Loaded plugin: homebridge-harmonyhub [2017-12-22 12:27:31] Registering platform 'homebridge-harmonyhub.HarmonyHub' [2017-12-22 12:27:31] --- [2017-12-22 12:27:32] Loaded plugin: homebridge-indigo [2017-12-22 12:27:32] Registering platform 'homebridge-indigo.Indigo' [2017-12-22 12:27:32] --- [2017-12-22 12:27:32] Loaded plugin: homebridge-liftmaster2 [2017-12-22 12:27:32] Registering platform 'homebridge-liftmaster2.LiftMaster2' [2017-12-22 12:27:32] --- [2017-12-22 12:27:33] Loaded plugin: homebridge-weather-station-extended [2017-12-22 12:27:33] Registering platform 'homebridge-wunderground-extended.WeatherStation' [2017-12-22 12:27:33] --- [2017-12-22 12:27:33] Loaded config.json with 0 accessories and 4 platforms. [2017-12-22 12:27:33] --- [2017-12-22 12:27:33] Loading 4 platforms... [2017-12-22 12:27:33] [My Indigo Server] Initializing Indigo platform... [2017-12-22 12:27:33] [My Indigo Server] Indigo base URL is http://192.168.1.10:8176 [2017-12-22 12:27:34] [Harmony Hub] Initializing HarmonyHub platform... [2017-12-22 12:27:34] [LiftMaster2] Initializing LiftMaster2 platform... [2017-12-22 12:27:34] [Weather Station] Initializing WeatherStation platform... [2017-12-22 12:27:34] [Weather Station] Initializing platform accessory 'Now'... [2017-12-22 12:27:34] [Weather Station] Initializing platform accessory 'Today'... [2017-12-22 12:27:34] [Weather Station] Initializing platform accessory 'In 1 Day'... [2017-12-22 12:27:34] [Weather Station] Initializing platform accessory 'In 2 Days'... [2017-12-22 12:27:34] [Weather Station] Initializing platform accessory 'In 3 Days'... [2017-12-22 12:27:34] [My Indigo Server] Listening on port 8177 [2017-12-22 12:27:34] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices.json/ [2017-12-22 12:27:35] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Basement%20Garage%20Door%20Light.json [2017-12-22 12:27:35] [My Indigo Server] Discovered ICON Relay Switch (ID 1552946438): Basement Garage Door Light [2017-12-22 12:27:35] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Basement%20Stairs%20Light.json [2017-12-22 12:27:35] [My Indigo Server] Discovered ICON Relay Switch (ID 607985196): Basement Stairs Light [2017-12-22 12:27:35] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Front%20Hall%20Light.json [2017-12-22 12:27:35] [My Indigo Server] Discovered ICON Relay Switch (ID 1907923708): Front Hall Light [2017-12-22 12:27:35] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Living%20Room%20Lamp.json [2017-12-22 12:27:35] [My Indigo Server] Discovered LampLinc V2 (ID 86495892): Living Room Lamp [2017-12-22 12:27:35] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Rear%20roof%20cables.json [2017-12-22 12:27:35] [My Indigo Server] Discovered ICON Relay Switch (ID 556887433): Rear roof cables [2017-12-22 12:27:35] [My Indigo Server] Indigo request: http://192.168.1.10:8176/actions.json/ [2017-12-22 12:27:35] [My Indigo Server] Indigo request: http://192.168.1.10:8176/actions/Check%20weather.json [2017-12-22 12:27:35] [My Indigo Server] Discovered Action (ID 323125831): Check weather [2017-12-22 12:27:35] [My Indigo Server] Created 6 accessories [2017-12-22 12:27:35] [My Indigo Server] Initializing platform accessory 'Indigo Basement Garage Door Light'... [2017-12-22 12:27:35] [My Indigo Server] Initializing platform accessory 'Indigo Basement Stairs Light'... [2017-12-22 12:27:35] [My Indigo Server] Initializing platform accessory 'Indigo Check weather'... [2017-12-22 12:27:35] [My Indigo Server] Initializing platform accessory 'Indigo Front Hall Light'... [2017-12-22 12:27:35] [My Indigo Server] Initializing platform accessory 'Indigo Living Room Lamp'... [2017-12-22 12:27:35] [My Indigo Server] Initializing platform accessory 'Indigo Rear roof cables'... Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
[2017-12-22 12:27:35] Homebridge is running on port 51826. [2017-12-22 12:27:36] [Harmony Hub] Fetching Logitech Harmony activities... [2017-12-22 12:27:37] [LiftMaster2] Initializing platform accessory 'Garage Door Opener (ID: 6779418)'... [2017-12-22 12:27:38] [Harmony Hub] Found activities: Watch a DVD/Blu-ray PowerOff Listen to Sonos Watch TV Watch Apple TV [2017-12-22 12:27:49] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Living%20Room%20Lamp.json [2017-12-22 12:27:49] [My Indigo Server] Indigo Living Room Lamp: getOnState() => false [2017-12-22 12:27:56] [My Indigo Server] Indigo Living Room Lamp: setLightOnState(1) [2017-12-22 12:27:56] [My Indigo Server] Indigo Living Room Lamp: setOnState(true) [2017-12-22 12:27:56] [My Indigo Server] updateStatus of Indigo Living Room Lamp: {"isOn":1} [2017-12-22 12:27:56] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Living%20Room%20Lamp.json [2017-12-22 12:28:03] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Living%20Room%20Lamp.json [2017-12-22 12:28:16] [My Indigo Server] Indigo Living Room Lamp: setLightOnState(0) [2017-12-22 12:28:16] [My Indigo Server] Indigo Living Room Lamp: setOnState(false) [2017-12-22 12:28:16] [My Indigo Server] updateStatus of Indigo Living Room Lamp: {"isOn":0} [2017-12-22 12:28:16] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Living%20Room%20Lamp.json [2017-12-22 12:28:23] [My Indigo Server] Indigo request: http://192.168.1.10:8176/devices/Living%20Room%20Lamp.json
Okay, that's odd - it recognized it as a LampLinc V2. One more question, can you share the JSON that this returns: http://192.168.1.10:8176/devices/Living%20Room%20Lamp.json
Here it is:
{ "lastChangedTimeStr": "12:28:23 PM", "lastChangedRFC822": "Fri, 22 Dec 2017 17:28:23 GMT", "typeSupportsHVAC": false, "hasStateToDisplay": true, "typeSupportsEnergyMeter": false, "typeSupportsIO": false, "addressStr": "05.CD.36", "id": 86495892, "typeFlags": 1311, "typeSupportsOnOff": true, "isOn": false, "lastChanged": 567260903, "typeSupportsSensorValue": false, "type": "LampLinc V2", "classID": 2, "versByte": 39, "typeSupportsSpeedControl": false, "displayInUI": true, "displayLongState": "0%", "restParent": "devices", "address": 380214, "desc": "LampLincV2", "displayRawState": 0, "name": "Living Room Lamp", "brightness": 0, "typeSupportsDim": true, "lastChangedDateStr": "2017-12-22", "lastChangedRFC3339": "2017-12-22T17:28:23Z", "devProtocol": 1, "folderID": 0, "typeSupportsSprinkler": false }
I'm stumped - Indigo is correctly saying "typeSupportsDim" as true, so it should be setup with brightness support. Are you using the latest versions of homebridge and homebridge-indigo? You can also try removing it from your home and adding it back.
I believe so. I forget, but there is a command to check all the module versions ... let me see if I can find that.
I'm on homebridge 0.4.31; seems there is a 0.4.33 now. Don't think that's the issue, but I can update.
Not a good move. Now lots of homebridge errors and can't get it to run. May have to reinstall :(
Sorry to hear that! What version of homebridge-indigo do you have installed? 0.3.11 is the latest.
I'll let you know after I rebuild homebridge!
OK, have homebridge running. homebridge-indigo version is 0.3.11, and homebridge version is 0.4.33. Both the latest. No change. I've tried a couple of Homekit interfaces as well - Home, Eve, Hesperus - all the same.
I have a resolution, though I'm not sure it's going to help the next person. I removed and readded the Homebridge bridge from Homekit. Now, the LampLinc is correctly identified as a dimmer. Not sure why, but I'm not complaining.
Feel free to close if you like - I'm set.
Okay, I'm glad that fixed it. I don't know what caused the initial issue, but there were some homebridge changes that were made to support Homekit changes in iOS 11, so perhaps that part of it? Thanks for the feedback!
My LampLincV2 module is identified by Homekit as a switch. While I can use Homekit to change it to a light, I still cannot get dimming control on Homekit. Any ideas?