Page 5 of 27
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 14:00
by simon_rb
gizmocuz wrote:maybe we can add an optional parameter (room plan).
this way we can create a room, just for siri/homebridge, and put all devices in there that you want to control ?
it is an extra json query parameter to request devices from a room, so this should not be to hard to implement
That would be fantastic!
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 14:27
by SwordFish
I have it up and running and it is working very well. But i notice that when i add a device and on the same time the connection with the homebridge is lost you also lose your device. is there a way to get the device back?
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 14:28
by simon_rb
SwordFish wrote:I have it up and running and it is working very well. But i notice that when i add a device and on the same time the connection with the homebridge is lost you also lose your device. is there a way to get the device back?
I have had the same behaviour. Only way I found of getting the device back was to reset HomeKit settings and start again.
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 14:31
by gizmocuz
simon_rb wrote:gizmocuz wrote:maybe we can add an optional parameter (room plan).
this way we can create a room, just for siri/homebridge, and put all devices in there that you want to control ?
it is an extra json query parameter to request devices from a room, so this should not be to hard to implement
That would be fantastic!
If you place the attached file in the homebridge/platforms folder, and then you can specify a roomplan in the config.json file
config.json example:
// "platforms": [
// {
// "platform": "Domoticz",
// "name": "Domoticz",
// "server": "127.0.0.1",
// "port": "8080",
// "roomid": 123 (0=no roomplan)
// }
// ],
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 14:32
by SwordFish
I know, but is there no other option
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 14:33
by simon_rb
SwordFish wrote:I know, but is there no other option
Not that I've found. Going to try what Gizmocuz has said above and only try a couple of devices and see if it's more reliable and post my findings..
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 14:34
by simon_rb
gizmocuz wrote:simon_rb wrote:gizmocuz wrote:maybe we can add an optional parameter (room plan).
this way we can create a room, just for siri/homebridge, and put all devices in there that you want to control ?
it is an extra json query parameter to request devices from a room, so this should not be to hard to implement
That would be fantastic!
If you place the attached file in the homebridge/platforms folder, and then you can specify a roomplan in the config.json file
config.json example:
// "platforms": [
// {
// "platform": "Domoticz",
// "name": "Domoticz",
// "server": "127.0.0.1",
// "port": "8080",
// "roomid": 123 (0=no roomplan)
// }
// ],
Thanks mate, will try this later.. Fast working there!! Cheers.
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 16:39
by pepijn
Nice work!
HomeKit integration was running here for several months based on HAP-NodeJS (
viewtopic.php?f=38&t=6170&p=40433), but i needed to manually add every switch to my HomeKit configuration so this rocks!
2 additions:
1) NodeJS Repository
You can install NodeJS 0.12 by adding the NodeJS repository to your apt sources.
Code: Select all
curl -sL https://deb.nodesource.com/setup_dev | sudo bash -
and use
or
2) Use PM2 so start on system boot
I use PM2
https://github.com/Unitech/pm2 to manage my NodeJS apps like HomeKit and NodeJS.
Code: Select all
pm2 start /opt/homekit/app.js --name HomeKit --node-args="--max-old-space-size=64" -- -v
pm2 startup
pm2 save
Will add HomeKit to PM2 and will start on system boot.
will show the HomeKit logs ... etc
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 16:42
by gizmocuz
is 'forever' not a better way to auto start nodejs applications?
(almost done with a new stable release, and installed forever on the sdcard image)
(homebridge is installed, but not active when you burn the sdcard image)
npm install forever
cd homebridge
forever start app.js
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 17:13
by simon_rb
gizmocuz wrote:simon_rb wrote:gizmocuz wrote:maybe we can add an optional parameter (room plan).
this way we can create a room, just for siri/homebridge, and put all devices in there that you want to control ?
it is an extra json query parameter to request devices from a room, so this should not be to hard to implement
That would be fantastic!
If you place the attached file in the homebridge/platforms folder, and then you can specify a roomplan in the config.json file
config.json example:
// "platforms": [
// {
// "platform": "Domoticz",
// "name": "Domoticz",
// "server": "127.0.0.1",
// "port": "8080",
// "roomid": 123 (0=no roomplan)
// }
// ],
Sorry for being daft. I can't get this to work. When I add "roomid": to it I get syntaxerror unexpected string..
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 17:24
by pepijn
gizmocuz wrote:is 'forever' not a better way to auto start nodejs applications?
Forever will also work.
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 18:00
by gizmocuz
simon_rb wrote:
Sorry for being daft. I can't get this to work. When I add "roomid": to it I get syntaxerror unexpected string..
double check if you got a 'comma' after the port
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 18:02
by simonrg
simon_rb wrote:Sorry for being daft. I can't get this to work. When I add "roomid": to it I get syntaxerror unexpected string..
Have you replaced ~/homebridge/platforms/Domoticz.js with the version in the zip file which gizmocuz supplied in his post?
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 18:04
by pvm
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
What is the dutch command to start a scene?
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 18:08
by simon_rb
gizmocuz wrote:double check if you got a 'comma' after the port
This is what I have tried. Also tried "123", also..
"platforms": [
{
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8080",
"roomid": 123
}
],
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 18:09
by simon_rb
simonrg wrote:simon_rb wrote:Sorry for being daft. I can't get this to work. When I add "roomid": to it I get syntaxerror unexpected string..
Have you replaced ~/homebridge/platforms/Domoticz.js with the version in the zip file which gizmocuz supplied in his post?
I have done
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 18:09
by gizmocuz
could you try
"roomid": "123"
and please post the output when running homebridge
Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 18:24
by simon_rb
I had a comma after "123"
Thank you for your help. It still loaded my scenes but that's ok. Although my living room wall lights are not showing up.. I tried to set that device up last night and it disappeared. Is there a file that stores all the sync info so I can delete it all and start again? Cheers
Update:- just turned on my first scene, I like the eve app as it allows you to pick a Siri name for each device. (Didn't see that on the insteon app).
Still have some devices missing - would love to start fresh with all the syncing.
Update:- Found the persist folder, deleted the contents and that seems to have done the trick to start fresh however still no switches, only scenes are showing up.
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 19:13
by simon_rb
For some reason it is only importing my scenes and none off the switches from the room. I called the room 123 just like in the code above. I have since removed the " from the 123 and that hasn't made any difference. Am I right in thinking its the room name and not some other ID like the IDX for the switches. Sorry I've taken some much of every bodies time up on here. I do sincerely appreciate it.
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 14 June 2015 20:13
by Eduard
simon_rb wrote:For some reason it is only importing my scenes and none off the switches from the room. I called the room 123 just like in the code above. I have since removed the " from the 123 and that hasn't made any difference. Am I right in thinking its the room name and not some other ID like the IDX for the switches. Sorry I've taken some much of every bodies time up on here. I do sincerely appreciate it.
I think you have to use the room idx...