Siri / HomeKit support for Domoticz

Moderator: leecollings

simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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.

:mrgreen: 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
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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+
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Siri / HomeKit support for Domoticz

Post by gizmocuz »

can anyone tell me how the 'secret' key is generated? I hope it is not based on the 'idx' value alone ?
Quality outlives Quantity!
simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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
iCloud Settings Screen
MissingIcloudKeychain.png (14.52 KiB) Viewed 4350 times
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Siri / HomeKit support for Domoticz

Post by gizmocuz »

between backup and find my phone, are you on ios 8.3 ?
Quality outlives Quantity!
simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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?
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Siri / HomeKit support for Domoticz

Post by gizmocuz »

well i dont think so

i think you have to google why you do not see the keychain application
Quality outlives Quantity!
simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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.
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
v40jlt4
Posts: 20
Joined: Saturday 24 January 2015 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Netherlands
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Siri / HomeKit support for Domoticz

Post by Derik »

Looks really great!!!
Perhaps something like this for a Android???

I ..... like Apples.. ;)
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
geezerrr
Posts: 79
Joined: Tuesday 02 December 2014 22:16
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Siri / HomeKit support for Domoticz

Post 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?
emke
Posts: 10
Joined: Tuesday 10 February 2015 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Siri / HomeKit support for Domoticz

Post by emke »

You can try forever to run Homebridge in the background

Code: Select all

npm install forever -g

Code: Select all

forever start /home/pi/homebridge/app.js
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Siri / HomeKit support for Domoticz

Post by gizmocuz »

simon_rb wrote:Does this mean we can control scenes in domoticz using Siri?
Yes ;)
Quality outlives Quantity!
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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.
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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"
Quality outlives Quantity!
User avatar
Mediacj
Posts: 74
Joined: Wednesday 11 February 2015 16:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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.
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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?
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Siri / HomeKit support for Domoticz

Post 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.
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Siri / HomeKit support for Domoticz

Post 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!
Last edited by simon_rb on Saturday 13 June 2015 11:26, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests