Page 2 of 27
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 18:10
by simonrg
Mediacj wrote:Thanks all for making/sharing and documenting this!
With Insteon I couldn't get it authenticated because my login credentials where not accepted, so I looked for an other app and found the Homekit app Eve which has no subscription and worked flawless also with Siri in dutch.
Echoing, thanks for making/enhancing/sharing and documenting all this, looks really neat.

I seem to have two problems - the Eve app tells me that to use Homekit I need to enable iCloud Keychain on my iPhone, so go to Settings / iCloud - not Keychain or Passbook items listed - anybody know how to get this item back?
Running homebridge I get a nice set of errors - it looks like I might have too many devices and the port number goes into an illegal range? Or have I forgotten a set-up step?
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
Cannot find secret key, creating One...
TCP server accepting connection on port: 64936
HAP Server is listening
[Domoticz] Initializing device with name Study Screens...
[Domoticz] Loaded services for Study Screens
Cannot find secret key, creating One...
TCP server accepting connection on port: 65166
HAP Server is listening
[Domoticz] Initializing device with name Study WiFi...
[Domoticz] Loaded services for Study WiFi
Cannot find secret key, creating One...
TCP server accepting connection on port: 65398
HAP Server is listening
[Domoticz] Initializing device with name Testbutton...
[Domoticz] Loaded services for Testbutton
Cannot find secret key, creating One...
/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)
npm ERR! Linux 3.18.14-v7+
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
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 18:12
by gizmocuz
just a comment, 'eve' can be found at
https://www.elgato.com/es/eve
in the icloud settings (settings app on iphone) enable key chain, the same goes for insteon+
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 18:13
by gizmocuz
can anyone tell me how the 'secret' key is generated? I hope it is not based on the 'idx' value alone ?
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 18:25
by simonrg
simonrg wrote:I seem to have two problems - the Eve app tells me that to use Homekit I need to enable iCloud Keychain on my iPhone, so go to Settings / iCloud - not Keychain or Passbook items listed - anybody know how to get this item back?
Where your Keychain setting should be:

- iCloud Settings Screen
- MissingIcloudKeychain.png (14.52 KiB) Viewed 4543 times
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 18:26
by gizmocuz
between backup and find my phone, are you on ios 8.3 ?
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 18:31
by simonrg
gizmocuz wrote:between backup and find my phone, are you on ios 8.3 ?
Yes on ios 8.3, also missing my iPad. I assume it is not a country feature of the UK?
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 18:35
by gizmocuz
well i dont think so
i think you have to google why you do not see the keychain application
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 19:14
by simonrg
gizmocuz wrote:well i dont think so
i think you have to google why you do not see the keychain application
I have tried Googling extensively, I now know that this the keychain was removed from the IOS 7.0.0 gold master at the last moment, only to be introduced properly in 7.0.1 etc., but I can't find a fix, everything tells you how to enable / disable the feature using the switch / button I haven't got.
Google is great, but large amounts material on one topic will bury a niche issue with a similar description, but I will keep looking.
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 19:17
by v40jlt4
Any successful installs on a Pi model B (the 1, not the 2)?
npm install just hangs for more than an hour and than says "killed"
No way of logging on to the pi in the mean time.
I followed the wiki to the letter.
TIA
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 19:37
by simon_rb
gizmocuz wrote:Joep wrote:I don't get you? To my howto?
That is possible, but it is system specific, so I have to figure all system start-up parameters out first.
Thats true

Maybe you could add a how-to to the domoticz wiki ?
i created a pull request:
https://github.com/nfarina/homebridge/pull/25
Implemented:
- Added support for RGB lights
- Added support for Scenes
- Sorting device names
Does this mean we can control scenes in domoticz using Siri?
Sorry for the dumb question, last time I tinkered with this it was with iOS 6 and that was great controlling domoticz with Siri Proxy.
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 21:27
by Derik
Looks really great!!!
Perhaps something like this for a Android???
I ..... like Apples..

Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 22:33
by geezerrr
It works very well!!
Accept a couple lights I was trying to add. but for some reason something went wrong and giving an error and now they are invisible? I'm using the app eve.
Is there a way to set the server to default settings again?
Re: Siri / HomeKit support for Domoticz
Posted: Friday 12 June 2015 23:12
by emke
You can try forever to run Homebridge in the background
Code: Select all
forever start /home/pi/homebridge/app.js
Re: Siri / HomeKit support for Domoticz
Posted: Saturday 13 June 2015 7:40
by gizmocuz
simon_rb wrote:Does this mean we can control scenes in domoticz using Siri?
Yes

Re: Siri / HomeKit support for Domoticz
Posted: Saturday 13 June 2015 8:02
by Heisenberg
I also have installed EVE. However it seems that Siri only accepts 'On' commands. If I try to turn off devices Siri says (in Dutch) that he can't do it. I also have renamed all my devices in Dutch.
Re: Siri / HomeKit support for Domoticz
Posted: Saturday 13 June 2015 8:04
by gizmocuz
i have it set on english, and can control on a room (insteon) called "Living room"
i say to siri, "Turn on Living Room" and the lights go on, and "Turn off Living Room" and the lights go off
i would expect in dutch it would be something like "Schakel Living Room uit"
Re: Siri / HomeKit support for Domoticz
Posted: Saturday 13 June 2015 9:05
by Mediacj
Mine is set to dutch and I made a room 'Huiskamer' in Eve.
I say to Siri: 'Zet huiskamer aan' or 'Zet huiskamer uit', both work perfect also for the other rooms.
Re: Siri / HomeKit support for Domoticz
Posted: Saturday 13 June 2015 10:36
by Heisenberg
Mediacj wrote:Mine is set to dutch and I made a room 'Huiskamer' in Eve.
I say to Siri: 'Zet huiskamer aan' or 'Zet huiskamer uit', both work perfect also for the other rooms.
It works after restarting it again "npm run start". But when I say to Siri: Doe de 'mechanische Ventilatie aan' then Siri replies with 'Ok, het licht is ingeschakeld'. The switch of the Mechanische Ventilatie turns on but its not a light of course. Any suggestions?
Re: Siri / HomeKit support for Domoticz
Posted: Saturday 13 June 2015 10:52
by SwordFish
this works great.
But when i close the putty sessie after run npm run start its stop working?
Is there a way to keep it running? Or do i mis something.
Siri / HomeKit support for Domoticz
Posted: Saturday 13 June 2015 11:03
by simon_rb
Great work guys, I have an Apple Watch also so hoping it works from that also. I see the wiki for installing what's required on the Pi however what's next after that? How do I add the scenes and light switches? Is it with that insteon app or eve app? Is that on the iPhone? It wasn't mentioned in the wiki.. I also read about the pin code to add devices..
Thanks for you help guys. And great work to get this working in such a short space of time. Kudos to all!!
Edit:- Found and installed the insteon+ app. Will be installing the bits on the pi soon.. Wish me luck. Cheers guys!