Re: Siri / HomeKit support for Domoticz
Posted: Saturday 27 June 2015 11:11
Thnx for the quick reply. Just to make sure I also reset Homekit configuration on my iPhone and started adding devices to Eve.
Open source Home Automation System
https://forum.domoticz.com/
Code: Select all
[Domoticz] TCP server accepting connection on port: 64708
HAP Server is listening
[Domoticz] Initializing device with name Study Printer...
[Domoticz] Loaded services for Study Printer
Code: Select all
[pi@domoticzpi ~/homebridge/lib/HAP-NodeJS $ npm run start
> [email protected] start /home/pi/homebridge/lib/HAP-NodeJS
> node BridgedCore.js
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
HAP-NodeJS starting...
Cannot find secret key, creating One...
TCP server accepting connection on port: 51826
HAP Server is listening[
Code: Select all
{
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "192.168.1.150",
"port": "8080",
"roomid": 9,
"usescenes": 0
}
],
"accessories": [
]
}
Code: Select all
/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56
dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
^
Error: argument 8: port number is out of bounds.
at Error (native)
at new Advertisement (/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56:10)
at Object.create [as createAdvertisement] (/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:64:10)
at Object.startAdvertising (/home/pi/homebridge/lib/HAP-NodeJS/Advertiser.js:7:28)
at Object.publishAccessory (/home/pi/homebridge/lib/HAP-NodeJS/Accessory.js:10:29)
at createHAPServer (/home/pi/homebridge/app.js:167:15)
at /home/pi/homebridge/app.js:92:17
at Request._callback (/home/pi/homebridge/platforms/Domoticz.js:62:5)
at Request.self.callback (/home/pi/homebridge/node_modules/request/request.js:373:22)
at Request.emit (events.js:110:17)
drogert wrote:Ok, after trying everything... Even buying a new Raspi 2 I have still no luck getting SIRI to work for me...
After allot of searching I see this in the output of people who are having a working example:
This is something I DO NOT get. It only states:Code: Select all
[Domoticz] TCP server accepting connection on port: 64708 HAP Server is listening [Domoticz] Initializing device with name Study Printer... [Domoticz] Loaded services for Study Printer
Which makes me believe the config.json is not working or the Server does not pull all the switches from domoticz or cannot connect with domoticz.Code: Select all
[pi@domoticzpi ~/homebridge/lib/HAP-NodeJS $ npm run start > [email protected] start /home/pi/homebridge/lib/HAP-NodeJS > node BridgedCore.js *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node> *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister> HAP-NodeJS starting... Cannot find secret key, creating One... TCP server accepting connection on port: 51826 HAP Server is listening[
This is the config.json I use:Code: Select all
{ "description": "Configuration file for Domoticz platform.", "platforms": [ { "platform": "Domoticz", "name": "Domoticz", "server": "192.168.1.150", "port": "8080", "roomid": 9, "usescenes": 0 } ], "accessories": [ ] }
Could anybody please help me because I think I have tried every option right now and still no luck.
Same errors here. And I still wondering how I can setup a secure login to Domoticz website? Inlogname en password are of course required, but wil homebridge work then?h143 wrote:i have try to start homebridge at startup
i have try
sudo npm install forever -g
cd homebridge
sudo forever start /home/pi/homebridge/app.js
and get the follow response:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: /home/pi/homebridge/app.js
but i doesnt start when i reboot the raspberry
Those are not errors. I have the same respone, it are just warnings and in the info part you can see that app.js is being processed.ivom74 wrote:Same errors here. And I still wondering how I can setup a secure login to Domoticz website? Inlogname en password are of course required, but wil homebridge work then?h143 wrote:i have try to start homebridge at startup
i have try
sudo npm install forever -g
cd homebridge
sudo forever start /home/pi/homebridge/app.js
and get the follow response:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: /home/pi/homebridge/app.js
but i doesnt start when i reboot the raspberry
What app and how can I test if NPM have a good secure connection to the domoticz server?pi@domoticzpi ~ $ npm run start
npm ERR! Linux 3.18.16+
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! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! enoent ENOENT, open '/home/pi/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
Also clear the Homekit settings in your iPhone. Go to Settings, Privacy, Homekit and then you can reset Homekit configuration.nigels0 wrote:Sure - but the database seems to reside in the HomeKit database as a fresh install of Domoticz image didn't clear it as I mentioned earlier.