Hello,
I have been working through this tutorial and reading over other peoples comments in this thread.
I am trying to set home this home kit integration using the stable build of Domoticz (v2.2553) on a Raspberry Pi built from the pre-built image.
All of the packages should be installed and I have moved directly to the configuration task outlines in the wiki instructions. I have configured the config.json file with the following settings:
{
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8080"
"roomid": 2 (0=no roomplan),
"usescenes": 0 (0=off, 1=on)
}
],
"accessories": [
]
}
2 is the idx value beside the room plan that I have selected for use with home kit.
2 is the idx value beside the room plan that I have selected for use with home kit. I have noticed that other people have much higher idx values such as 123, but all of mine are below ten, not sure if this is causing an issue.
When I run the “npm run start” command I get the following error:
pi@raspberrypi:~/homebridge$ npm run start
>
[email protected] start /home/pi/homebridge
> node app.js
Starting HomeBridge server...
undefined:9
"roomid": 2 (0=no roomplan),
^
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 3.18.11+
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!
[email protected] start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the
[email protected] 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
pi@raspberrypi:~/homebridge$
Am I doing something basic wrong?
Thanks in advance for any help on this.
G