No devices and JSON Error

Posted on
Mon Dec 26, 2016 12:30 pm
bkmar1192 offline
Posts: 274
Joined: Sep 12, 2015

No devices and JSON Error

Devices are not showing up (I am only selecting one for testing). I am not getting any errors in the Indigo log file but the Homebridge log file is reporting a JSON error.

Below is the config file and the Homebridge error log:

Z-Wave received "Living Room Motion" status update is on
Z-Wave received "Sliding Door" status update is on
Z-Wave received "Sliding Door" status update is off
EPS - Homebridge Buddy {
"accessories": [],
"bridge": {
"username": "CC:22:3D:E3:CE:32",
"name": "new device",
"pin": "031-45-154",
"port": 51827
},
"description": "Homebridge-Indigo configuration generated by EPS Homebridge Buddy on 2016-12-26 10:12:37 for device new device",
"platforms": [
{
"username": "",
"includeIds": [
"69790851"
],
"protocol": "http",
"name": "new device",
"includeActions": false,
"treatAsSwitchIds": [
"69790851"
],
"platform": "Indigo",
"host": "127.0.0.1",
"thermostatsInCelsius": false,
"path": "",
"password": "",
"accessoryNamePrefix": "",
"port": "8176"
}
]
}

-----

EPS - Homebridge Buddy [12/26/2016, 10:19:15 AM] Warning: skipping plugin found at '/usr/local/lib/node_modules/homebridge-indigo' since we already loaded the same plugin from '/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS Homebridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v7.2.1-darwin-x64/lib/node_modules/homebridge-indigo'.
[12/26/2016, 10:19:23 AM] Loaded plugin: homebridge-indigo
[12/26/2016, 10:19:23 AM] Registering platform 'homebridge-indigo.Indigo'
[12/26/2016, 10:19:23 AM] ---
[12/26/2016, 10:19:23 AM] Loaded config.json with 0 accessories and 1 platforms.
[12/26/2016, 10:19:23 AM] ---
[12/26/2016, 10:19:23 AM] Loading 1 platforms...
[12/26/2016, 10:19:23 AM] [new device] Initializing Indigo platform...
[12/26/2016, 10:19:23 AM] [new device] Indigo base URL is http://127.0.0.1:8176
[12/26/2016, 10:19:23 AM] Loading 0 accessories...
[12/26/2016, 10:19:23 AM] [new device] Indigo request: http://127.0.0.1:8176/devices.json/
[12/26/2016, 10:19:23 AM] [new device] 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/26/2016, 10:19:23 AM] [new device] 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/26/2016, 10:19:23 AM] [new device] Created 0 accessories
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-154 │
└────────────┘

[12/26/2016, 10:19:23 AM] Homebridge is running on port 51827.

Posted on
Mon Dec 26, 2016 12:46 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: No devices and JSON Error

bkmar1192 wrote:
<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>


That part tells you the story. HB is trying to talk to Indigo but is being told that access is denied. Make sure you have the ip address, user name and password set properly to get to Indigo's RESTful API.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest