Problem Installing Homebridge-Indigo

Posted on
Mon Dec 26, 2016 11:51 pm
nchiles offline
Posts: 8
Joined: Dec 26, 2016

Problem Installing Homebridge-Indigo

Hi, I am new at this and keep getting this when trying to install this plugin:

Code: Select all
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
/opt/local/lib
└── homebridge-indigo@0.3.4


Can anyone point me in the right direction?

Thanks

Posted on
Tue Dec 27, 2016 12:24 am
webdeck offline
Posts: 341
Joined: May 07, 2005

Re: Problem Installing Homebridge-Indigo

It's a warning that should be safe to ignore.

Posted on
Tue Dec 27, 2016 8:28 am
nchiles offline
Posts: 8
Joined: Dec 26, 2016

Re: Problem Installing Homebridge-Indigo

Thanks for the reply. When I try to run homebridge, I'm getting this:

Code: Select all
/bin/sh: /opt/local/bin/npm: /opt/local/bin/node: bad interpreter: No such file or directory
[12/27/2016, 9:10:03 AM] Loaded plugin: homebridge-indigo
[12/27/2016, 9:10:03 AM] Registering platform 'homebridge-indigo.Indigo'
[12/27/2016, 9:10:03 AM] ---
[12/27/2016, 9:10:03 AM] ====================
[12/27/2016, 9:10:03 AM] ERROR LOADING PLUGIN homebridge-indigo-master:
[12/27/2016, 9:10:03 AM] Error: Cannot find module 'request'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-indigo-master/index.js:67:15)
    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)
[12/27/2016, 9:10:03 AM] ====================
[12/27/2016, 9:10:03 AM] Loaded plugin: homebridge-nest
[12/27/2016, 9:10:03 AM] Registering platform 'homebridge-nest.Nest'
[12/27/2016, 9:10:03 AM] ---
[12/27/2016, 9:10:03 AM] Loaded config.json with 0 accessories and 1 platforms.
[12/27/2016, 9:10:03 AM] ---
[12/27/2016, 9:10:03 AM] Loading 1 platforms...
[12/27/2016, 9:10:03 AM] [HomeServer] Initializing Indigo platform...
[12/27/2016, 9:10:03 AM] [HomeServer] Indigo base URL is http://127.0.0.1:8176
[12/27/2016, 9:10:03 AM] Loading 0 accessories...
[12/27/2016, 9:10:03 AM] [HomeServer] Listening on port 8177
[12/27/2016, 9:10:03 AM] [HomeServer] Indigo request: http://127.0.0.1:8176/devices.json/
[12/27/2016, 9:10:03 AM] [HomeServer] Error parsing Indigo response for /devices.json/
Exception: SyntaxError: Unexpected token < in JSON at position 0
Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
      <title>Indigo Home Control Server</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/global4.css" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/indigo4.css" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/fonts.css" />
   </head>
   <body>
      <center>
   access denied
      </center>
   </body>
</html>

[12/27/2016, 9:10:03 AM] [HomeServer] Error parsing Indigo response for /devices.json/
Exception: SyntaxError: Unexpected token < in JSON at position 0
Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
      <title>Indigo Home Control Server</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/global4.css" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/indigo4.css" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/fonts.css" />
   </head>
   <body>
      <center>
   access denied
      </center>
   </body>
</html>

[12/27/2016, 9:10:03 AM] [HomeServer] Created 0 accessories
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
fs.js:640
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: EACCES: permission denied, open '/Users/nathanchiles/.homebridge/persist/AccessoryInfo.CC223DE3CE32.json'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.writeFileSync (fs.js:1333:33)
    at Object.persistKeySync (/opt/local/lib/node_modules/homebridge/node_modules/node-persist/local-storage.js:457:12)
    at Object.setItemSync (/opt/local/lib/node_modules/homebridge/node_modules/node-persist/local-storage.js:275:14)
    at Object.nodePersist.setItemSync (/opt/local/lib/node_modules/homebridge/node_modules/node-persist/node-persist.js:99:29)
    at AccessoryInfo.save (/opt/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/model/AccessoryInfo.js:161:11)
    at Bridge.Accessory.publish (/opt/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:439:23)
    at Server._publish (/opt/local/lib/node_modules/homebridge/lib/server.js:114:16)
    at Server.<anonymous> (/opt/local/lib/node_modules/homebridge/lib/server.js:372:14)
    at /opt/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
    at IndigoPlatform.<anonymous> (/opt/local/lib/node_modules/homebridge-indigo/index.js:218:13)
    at /opt/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:52:16
    at /opt/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:264:21
    at /opt/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:44:16
    at IndigoPlatform.<anonymous> (/opt/local/lib/node_modules/homebridge-indigo/index.js:235:17)
    at IndigoPlatform.<anonymous> (/opt/local/lib/node_modules/homebridge-indigo/index.js:368:21)
    at /opt/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:906:35
    at _arrayEach (/opt/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:85:13)
    at Request.<anonymous> (/opt/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:898:17)
    at Request._callback (/opt/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:44:16)
    at Request.self.callback (/opt/local/lib/node_modules/homebridge-indigo/node_modules/request/request.js:373:22)


Do you think this is a problem with my config.json file? I'm wondering if moved something when trying to fix the first warning, and should start fresh.

Thanks again for your help, and for making this plugin!

Posted on
Tue Dec 27, 2016 8:44 am
Colorado4Wheeler online
User avatar
Posts: 1080
Joined: Jul 20, 2009
Location: Colorado

Re: Problem Installing Homebridge-Indigo

That almost looks like you did
Code: Select all
npm install {package}


instead of
Code: Select all
npm install -g  {package}


I say that because of the access denied messages. You could uninstall the package and try to reinstall it to see if that resolves the issue.

My Modest Contributions to Indigo:

Homebridge Buddy | Room-O-Matic | Smart Dimmer | Scene Toggle | Mac Commander | Security Manager | Device Extensions | LCD Creator | Control Page Keypad | Powermiser

Check Them Out Here

Posted on
Tue Dec 27, 2016 9:13 am
webdeck offline
Posts: 341
Joined: May 07, 2005

Re: Problem Installing Homebridge-Indigo

And the other issue is that you don't have the correct login information for your Indigo server in your config.json

Posted on
Tue Dec 27, 2016 12:19 pm
nchiles offline
Posts: 8
Joined: Dec 26, 2016

Re: Problem Installing Homebridge-Indigo

Thanks guys. I restored from a backup and started over, trying to follow the installation instructions better. I think I'm closer, because it's showing my accessories (Dining Room Lights, Front Door Light) in terminal , but they still aren't showing up in the Home app, just the Nest is.

I've had homebridge running with my nest for a while before trying to install homebridge-indigo. Do you think that could be interfering with the installation?

Here is what the terminal is showing when I run homebridge:


Code: Select all
[12/27/2016, 12:52:37 PM] Loaded plugin: homebridge-indigo
[12/27/2016, 12:52:37 PM] Registering platform 'homebridge-indigo.Indigo'
[12/27/2016, 12:52:37 PM] ---
[12/27/2016, 12:52:38 PM] Loaded plugin: homebridge-nest
[12/27/2016, 12:52:38 PM] Registering platform 'homebridge-nest.Nest'
[12/27/2016, 12:52:38 PM] ---
[12/27/2016, 12:52:38 PM] Loaded config.json with 0 accessories and 1 platforms.
[12/27/2016, 12:52:38 PM] ---
[12/27/2016, 12:52:38 PM] Loading 1 platforms...
[12/27/2016, 12:52:38 PM] [My Indigo Server] Initializing Indigo platform...
[12/27/2016, 12:52:38 PM] [My Indigo Server] Indigo base URL is http://127.0.0.1:8176
[12/27/2016, 12:52:38 PM] Loading 0 accessories...
[12/27/2016, 12:52:38 PM] [My Indigo Server] Indigo request: http://127.0.0.1:8176/devices.json/
[12/27/2016, 12:52:39 PM] [My Indigo Server] Indigo request: http://127.0.0.1:8176/devices/Dining%20Room%20Lights.json
[12/27/2016, 12:52:39 PM] [My Indigo Server] Discovered Dimmable Power Switch (ID 1346994522): Dining Room Lights
[12/27/2016, 12:52:39 PM] [My Indigo Server] Indigo request: http://127.0.0.1:8176/devices/Front%20Door%20Light.json
[12/27/2016, 12:52:39 PM] [My Indigo Server] Discovered Relay Power Switch (ID 1540531918): Front Door Light
[12/27/2016, 12:52:39 PM] [My Indigo Server] Indigo request: http://127.0.0.1:8176/actions.json/
[12/27/2016, 12:52:39 PM] [My Indigo Server] Created 2 accessories
[12/27/2016, 12:52:39 PM] [My Indigo Server] Initializing platform accessory 'Dining Room Lights'...
[12/27/2016, 12:52:39 PM] [My Indigo Server] Initializing platform accessory 'Front Door Light'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::51826
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at Server._listen2 (net.js:1259:14)
    at listen (net.js:1295:10)
    at Server.listen (net.js:1391: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.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:372:14)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
    at IndigoPlatform.<anonymous> (/usr/local/lib/node_modules/homebridge-indigo/index.js:218:13)
    at /usr/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:52:16
    at /usr/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:269:32
    at /usr/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:44:16
    at /usr/local/lib/node_modules/homebridge-indigo/index.js:243:29
    at /usr/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:52:16
    at iterate (/usr/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:260:24)
    at Object.async.forEachOfSeries.async.eachOfSeries (/usr/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:281:9)
    at Object.async.forEachSeries.async.eachSeries (/usr/local/lib/node_modules/homebridge-indigo/node_modules/async/lib/async.js:214:22)
    at IndigoPlatform.<anonymous> (/usr/local/lib/node_modules/homebridge-indigo/index.js:238:23)
    at IndigoPlatform.<anonymous> (/usr/local/lib/node_modules/homebridge-indigo/index.js:371:17)


After googling
Code: Select all
Error: listen EADDRINUSE :::51826
, I did
Code: Select all
sudo killall homebridge
and restarted homebridge. Now the Nest is not responding either :?

Sorry for all the questions, I appreciate your help so far.

Posted on
Tue Dec 27, 2016 12:41 pm
Colorado4Wheeler online
User avatar
Posts: 1080
Joined: Jul 20, 2009
Location: Colorado

Re: Problem Installing Homebridge-Indigo

So it looks like you have two HB servers running on the same port now. In your config change the port to something different and, while you are there, change the user name from the default to something else by changing one character. The user name will be something like "CD:22:DD:E3:CE:30", just change one of those characters to an F to force HomeKit to reacquire the server. HK will cache previous servers and if they are not properly removed while the server is operational they can get stuck in the HK database.

My Modest Contributions to Indigo:

Homebridge Buddy | Room-O-Matic | Smart Dimmer | Scene Toggle | Mac Commander | Security Manager | Device Extensions | LCD Creator | Control Page Keypad | Powermiser

Check Them Out Here

Posted on
Tue Dec 27, 2016 12:56 pm
nchiles offline
Posts: 8
Joined: Dec 26, 2016

Re: Problem Installing Homebridge-Indigo

That did it! Thank you so much!

Posted on
Tue Dec 27, 2016 1:01 pm
Colorado4Wheeler online
User avatar
Posts: 1080
Joined: Jul 20, 2009
Location: Colorado

Re: Problem Installing Homebridge-Indigo

Awesome!

Dear Diary,

Today I was actually right for a change, perhaps 2017 WILL be my year after all. Hopefully this also means I can eat more brownies without gaining weight but that may be tempting fate too much.

Yours truly,
C4W

My Modest Contributions to Indigo:

Homebridge Buddy | Room-O-Matic | Smart Dimmer | Scene Toggle | Mac Commander | Security Manager | Device Extensions | LCD Creator | Control Page Keypad | Powermiser

Check Them Out Here

Posted on
Tue Dec 27, 2016 1:09 pm
nchiles offline
Posts: 8
Joined: Dec 26, 2016

Re: Problem Installing Homebridge-Indigo

Colorado4Wheeler wrote:
Awesome!

Dear Diary,

Today I was actually right for a change, perhaps 2017 WILL be my year after all. Hopefully this also means I can eat more brownies without gaining weight but that may be tempting fate too much.

Yours truly,
C4W



Hahahahaha :lol:

Posted on
Fri Dec 30, 2016 7:21 pm
webdeck offline
Posts: 341
Joined: May 07, 2005

Re: Problem Installing Homebridge-Indigo

FYI, I published an update that resolves the deprecation warning.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest