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 :
> [email protected] 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! [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
Any idea, what's happen ?
Thanks for any help
Error npm Homebridge install with Domoticz
Moderator: leecollings
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: Error npm Homebridge install with Domoticz
There should be a comma after the port number.
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
"port": "8097",
Code: Select all
"roomid": "2",
Not using Domoticz anymore
-
- Posts: 60
- Joined: Saturday 20 June 2015 10:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Error npm Homebridge install with Domoticz
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 ?
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 ?
Who is online
Users browsing this forum: No registered users and 1 guest