That would be fantastic!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
Siri / HomeKit support for Domoticz
Moderator: leecollings
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
-
- 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
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?
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
I have had the same behaviour. Only way I found of getting the device back was to reset HomeKit settings and start again.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?
- gizmocuz
- Posts: 2537
- 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
If you place the attached file in the homebridge/platforms folder, and then you can specify a roomplan in the config.json filesimon_rb wrote:That would be fantastic!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
config.json example:
// "platforms": [
// {
// "platform": "Domoticz",
// "name": "Domoticz",
// "server": "127.0.0.1",
// "port": "8080",
// "roomid": 123 (0=no roomplan)
// }
// ],
- Attachments
-
- Domoticz.zip
- (2.5 KiB) Downloaded 223 times
Quality outlives Quantity!
-
- 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
I know, but is there no other option
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
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..SwordFish wrote:I know, but is there no other option
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
Thanks mate, will try this later.. Fast working there!! Cheers.gizmocuz wrote:If you place the attached file in the homebridge/platforms folder, and then you can specify a roomplan in the config.json filesimon_rb wrote:That would be fantastic!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
config.json example:
// "platforms": [
// {
// "platform": "Domoticz",
// "name": "Domoticz",
// "server": "127.0.0.1",
// "port": "8080",
// "roomid": 123 (0=no roomplan)
// }
// ],
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Siri / HomeKit support for Domoticz
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.
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.
Will add HomeKit to PM2 and will start on system boot.
will show the HomeKit logs ... etc
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 -
Code: Select all
apt-get install nodejs
Code: Select all
apt-get upgrade nodejs
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
Code: Select all
pm2 logs HomeKit
- gizmocuz
- Posts: 2537
- 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
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
(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
Quality outlives Quantity!
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
Sorry for being daft. I can't get this to work. When I add "roomid": to it I get syntaxerror unexpected string..gizmocuz wrote:If you place the attached file in the homebridge/platforms folder, and then you can specify a roomplan in the config.json filesimon_rb wrote:That would be fantastic!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
config.json example:
// "platforms": [
// {
// "platform": "Domoticz",
// "name": "Domoticz",
// "server": "127.0.0.1",
// "port": "8080",
// "roomid": 123 (0=no roomplan)
// }
// ],
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Siri / HomeKit support for Domoticz
Forever will also work.gizmocuz wrote:is 'forever' not a better way to auto start nodejs applications?
- gizmocuz
- Posts: 2537
- 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
double check if you got a 'comma' after the portsimon_rb wrote: Sorry for being daft. I can't get this to work. When I add "roomid": to it I get syntaxerror unexpected string..
Quality outlives Quantity!
-
- 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
Have you replaced ~/homebridge/platforms/Domoticz.js with the version in the zip file which gizmocuz supplied in his post?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..
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
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Siri / HomeKit support for Domoticz
What is the dutch command to start a scene?gizmocuz wrote:Thats trueJoep 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.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
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
This is what I have tried. Also tried "123", also..gizmocuz wrote:double check if you got a 'comma' after the port
"platforms": [
{
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8080",
"roomid": 123
}
],
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
I have donesimonrg wrote:Have you replaced ~/homebridge/platforms/Domoticz.js with the version in the zip file which gizmocuz supplied in his post?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..
- gizmocuz
- Posts: 2537
- 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
could you try
"roomid": "123"
and please post the output when running homebridge
"roomid": "123"
and please post the output when running homebridge
Quality outlives Quantity!
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Siri / HomeKit support for Domoticz
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.
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.
Last edited by simon_rb on Sunday 14 June 2015 19:31, edited 1 time in total.
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Siri / HomeKit support for Domoticz
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
I think you have to use the room idx...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.
Who is online
Users browsing this forum: No registered users and 1 guest