Error npm Homebridge install with Domoticz

Post Reply
bran2000
Posts: 79
Joined: Saturday 20 June 2015 10:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Error npm Homebridge install with Domoticz

Post by bran2000 » Monday 28 December 2015 0:01

Hi Guys,
i have a problem : i did a new install with the domoticz image, the new image includes homebrige.
i followed this tutorial : http://www.domoticz.com/wiki/Homekit_Siri
So i edited the config.json in the Homebridge folder, this is my config :

{
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8097"
"roomid": 2,
"loadscenes": 0
}
],
"accessories": [
]
}

But the problem is when i do
npm run start

this is the message error :

> homebridge@0.0.0 start /home/pi/homebridge
> node app.js

Starting HomeBridge server...
undefined:9
"roomid": 2,
^
SyntaxError: Unexpected string
at Object.parse (native)
at Object.<anonymous> (/home/pi/homebridge/app.js:21:19)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

npm ERR! Linux 4.1.13+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.1
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! homebridge@0.0.0 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the homebridge@0.0.0 start script 'node app.js'.
npm ERR! This is most likely a problem with the homebridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls homebridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/homebridge/npm-debug.log

Any idea, what's happen ?

Thanks for any help

User avatar
G3rard
Posts: 827
Joined: Wednesday 04 March 2015 23:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact:

Re: Error npm Homebridge install with Domoticz

Post by G3rard » Monday 28 December 2015 0:07

There should be a comma after the port number.

Code: Select all

"port": "8097",
In my config.json (older version) the room number is also between quotes. If it is still not working after adding the comma you can also try that.

Code: Select all

"roomid": "2",
Ubuntu Server 14.04 | Domoticz v3.8153 | RFXtrx433E | Z-Wave Aeotec Z-Stick S2
Frontpage | Sonos PHP | Dark th3me | Sony Bravia Python plugin | Sonos Python plugin

bran2000
Posts: 79
Joined: Saturday 20 June 2015 10:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Error npm Homebridge install with Domoticz

Post by bran2000 » Monday 28 December 2015 0:58

Thanks i did both and still the same problem.
But it seems working anyway when i use a ios app for homekit, i use Eve and it finds my Philips Hue.
However i have a another problem it can't find my nest thermostat.
i added these lines in my config.json :
{
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8097"
"roomid": 2,
"loadscenes": 1
}
{
"platform": "Nest",
"name": "Nest",
"username": "email address",
"password": "password"
},
],
"accessories": [
]
}

Any idea ?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests