Page 14 of 27
Re: Siri / HomeKit support for Domoticz
Posted: Saturday 29 August 2015 15:39
by schulpr
Ik have the same challenge. After a reboot it doesn't start. There is also no folder. There is an advantage using pm2. I can now close the Putty client without shutting down the process.
Securing homebridge pin
Posted: Saturday 29 August 2015 16:44
by ivom74
Anyone knows how the pin works?
I have the default configs:
Code: Select all
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
After adding the devices to Instean+ I changed the pin and restarted the Pi. Why can I still control all the devices?
I wonder if Domotica will now be a bridge together with Homebridge for controlling everything ? You can me scenes, schedules etc in Insteon or Eve.
I had some light scenes which where added to Insteon+. If I told siri to switch all lights off it made a disco and even the garagedoor was open because it saw it for a switch

.
Anyone else now makes the scenes only in Insteon+ / Eve?
Do i have to setup a VPN to use Insteon+ outside my lan?
I know a hope questions now it works:) but it is really nice and the response is very fast. It is faster then the Pilot App which is connected directly to Domotica, very strange...Can be a problem over here:-).
Re: Siri / HomeKit support for Domoticz
Posted: Sunday 30 August 2015 15:14
by wokkelp
Eduard wrote:
All looks fine until it reboots...
Did you do a
Code: Select all
sudo update-rc.d pm2-init.sh defaults
without problems?
Does the folder /home/pi/.pm2 exist?
Yup I did, and the folder exists, it doesn't show up with ls but I can navigate to it with cd.
I have no clue why it just won't work.
Anyhow I also loaded the sonos platform, and I am figuring out how to get that working.
It found my sonos bridge and my two speakers when I loaded homebridge.
Anyone played around with this already? and maybe found some sort of tutorial?
This is starting to bug me...
Everytime I try to launch the homebridge app without PM2 my domoticz crashes and I have no idea why...
(I did a sudo apt-get update and upgrade and I removed the sonos code from my config.json to make sure that wasn't conflicting, the config file is valid)
all devices acts like lights,
Posted: Sunday 30 August 2015 22:16
by ivom74
Hello,
I connected all my devices to homebridge. When i give a siri command to switch lights on the garagedoor is opening and the doorbell is ringing,
I can't programm in Insteon+ or Eve app what type of device it is.
All the devices from domoticz are lambs;-).
Anyone has the same problem?
Really nice the commands you can give. Colorchanging will be in ios 9 i hope.
“Turn on the lights” or “Turn off the lights.”
“Dim the lights” or “Set the brightness to 50%.”
“Set the temperature to 68 degrees.”
“Turn on the coffee maker.”
If you set up homes, zones, rooms, or scenes, you can use also commands like this:
- “Turn on the upstairs lights.”
“Turn off Chloe’s light.”
“Turn down the kitchen lights”
“Dim the lights in the dining room to 50%.”
“Make the living room lights the brightest.”
“Set the Tahoe house to 72 degrees.”
“Set the thermostat downstairs to 70.”
“Turn on the printer in the office.”
“Set up for a party, Siri.”
“Set the dinner scene.”
“Set my bedtime scene.”
Re: all devices acts like lights,
Posted: Monday 31 August 2015 10:54
by Bikey
ivom74 wrote:Hello,
....
All the devices from domoticz are lambs;-).
Anyone has the same problem?
....
Lambs or lamps? I hope you don't have lambs running around in your house, ha, ha;-)!
(Sorry for this comment, it was just too funny to let it go)
Re: all devices acts like lights,
Posted: Monday 31 August 2015 19:34
by ivom74
Bikey wrote:ivom74 wrote:Hello,
....
All the devices from domoticz are lambs;-).
Anyone has the same problem?
....
Lambs or lamps? I hope you don't have lambs running around in your house, ha, ha;-)!
(Sorry for this comment, it was just too funny to let it go)
My children will love it, lambs in the living room

.
Re: Siri / HomeKit support for Domoticz
Posted: Monday 31 August 2015 21:27
by wokkelp
Doing a clean install of homebridge, is this supposed to happen?
If not, why did it happen...
Code: Select all
> [email protected] install /home/pi/homebridge/node_modules/teslams/node_modules/ mongodb/node_modules/mongodb-core/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory '/home/pi/homebridge/node_modules/teslams/node_modules/ mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
kerberos.target.mk:89: recipe for target 'Release/obj.target/kerberos/lib/kerber os.o' failed
make: Leaving directory '/home/pi/homebridge/node_modules/teslams/node_modules/m ongodb/node_modules/mongodb-core/node_modules/kerberos/build'
Re: Siri / HomeKit support for Domoticz
Posted: Wednesday 02 September 2015 13:40
by foggy
Hi All,
I hope someone can help a newbie. I have only just started to use Domoticz and I am still learning.
I understand that I need to create config.json file.
Code: Select all
{
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8080"
}
],
"accessories": [
]
}
However I am not sure if I need to include my lights(accessories) in this file? or if they are picked up once I start the program and then I configure them in the IOS app?
If I need to add them in the config file, can some one assist in showing me how I should enter these parameters. I would be most grateful.
I am using LightwaveRF devices attached is a snip from my Devices section.
Best wishes.
Re: Siri / HomeKit support for Domoticz
Posted: Wednesday 02 September 2015 14:13
by G3rard
You do not need to add the lights in the config.json file. They will be available through Domoticz in the iOS app.
There has been a change in Homebridge recently, so I think you have to add some extra information in the config.json, see my earlier post
http://www.domoticz.com/forum/viewtopic ... 864#p52627. (I have Domoticz running on my Synology NAS so therefore I am using another ip and port.)
Re: Siri / HomeKit support for Domoticz
Posted: Wednesday 02 September 2015 15:22
by foggy
Thank you for replying G3rard,
Could you give the date of the your post. Your link takes me to the 1st post of this topic.
Best wishes.
Siri / HomeKit support for Domoticz
Posted: Wednesday 02 September 2015 15:38
by G3rard
Strange, link is working here with the right post.
It is the post from 27 August.
Re: Siri / HomeKit support for Domoticz
Posted: Wednesday 02 September 2015 18:03
by foggy
Thank you for your patience G3rad.
So I just need to enter this into a config file (with the comments I have made). As I don't have many lights. I assume I can just remove the room ID entry or as I have seen it somewhere else just put "0"?
Code: Select all
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "192.168.1.102", //Change to Raspberry Pi IP address 192.168.0.x
"port": "8084", // Change to port number 8080
"roomid": "11" //Can I remove this line or should I make it "0" ?
}
],
"accessories": [
]
}
Once again. Thank you for your help.
Best wishes.
Siri / HomeKit support for Domoticz
Posted: Wednesday 02 September 2015 20:24
by G3rard
If you don't use a room then indeed use 0.
Also check the Homebridge GitHub site for instructions as the software is still being improved which also can impact the config file (I saw a functionality was added recently to determine if you want to load scenes). Of course this depends on when you have installed the software from GitHub, best way to check this is having a look at the content in Domoticz.js in the platforms folder.
Re: Siri / HomeKit support for Domoticz
Posted: Wednesday 02 September 2015 22:28
by foggy
Thank you G3rard.
I am hoping to get my Raspberry Pi on Friday and then I can start setting things up.
I will be using the latest Raspberry Pi SD image.
I'll let you know how I get on.
Once again thank you for your assistance.
Best wishes.
Re: Siri / HomeKit support for Domoticz
Posted: Friday 04 September 2015 1:33
by Robbie
Hi all,
I struggled my way through a Homebridge installation on a Windows server. Not an ideal situation, but eventually the installation ran smoothly.
Now when I try to start Homebridge, I get:
So my 2 questions,
1. Where do I go from here? Since I don't get any error messages..
2. Is it possible to install Homebridge on a Sinology NAS? Untill now I failed in getting nodeJs v0.12.+ installed.
I hope someone can point me into the right direction
Cheers!
Re: Siri / HomeKit support for Domoticz
Posted: Friday 04 September 2015 10:31
by G3rard
I tried to install it on my Synology NAS but it didn't work (although NodeJS is available as a package in the package center). Depending on which NAS you have you can install Docker and run Debian on it. Then you can try to install Homebridge on Debian which should be working.
I will try this myself in the coming period.
Re: Siri / HomeKit support for Domoticz
Posted: Friday 04 September 2015 21:20
by foggy
Just wanted to thank G3rard.
I got it working.
Best wishes.
Re: Siri / HomeKit support for Domoticz
Posted: Friday 04 September 2015 21:29
by G3rard
Great that it is working. Credits go to the guys who made Homebridge and added the possibility to link it with Domoticz.
Re: Siri / HomeKit support for Domoticz
Posted: Friday 04 September 2015 23:44
by NewFolk
Hello everybody,
I need your help. I can`t connect to homebridge.
After typing the pin code. Insteon+ say "Connection Lost. Unable to communicate with device". Eve just broke the connection without message.
I tried:
To reset HomeKit data on iphone.
Deleting data at persist folder.
And recompiling homebridge.
- Spoiler: show
Code: Select all
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "192.168.1.50",
"port": "8080"
}
],
"accessories": [
]
}
Code: Select all
root@Kitchen:/home/pi/homebridge# npm run start
> [email protected] start /home/pi/homebridge
> DEBUG=* node app.js || true
*** 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>
Starting HomeBridge server...
_____________________________________________________________________
IMPORTANT: Homebridge is in the middle of some big changes.
Read more about it here:
https://github.com/nfarina/homebridge/wiki/Migration-Guide
_____________________________________________________________________
Loading 1 platforms...
[Domoticz] Initializing Domoticz platform...
[Domoticz] Fetching Domoticz lights and switches...
Loading 0 accessories...
[Domoticz] Initializing platform accessory 'Hall Motion'...
[Domoticz] Loaded services for Hall Motion
[Domoticz] Initializing platform accessory 'Hall_LED'...
[Domoticz] Loaded services for Hall_LED
[Domoticz] Initializing platform accessory 'Hall_Light'...
[Domoticz] Loaded services for Hall_Light
[Domoticz] Initializing platform accessory 'Kitchen Light'...
[Domoticz] Loaded services for Kitchen Light
Accessory [Homebridge] Creating new AccessoryInfo for our HAP server +0ms
Accessory [Homebridge] Creating new IdentifierCache +95ms
EventedHTTPServer Server listening on port 51826 +369ms
EventedHTTPServer [192.168.1.107] New connection from client +10s
EventedHTTPServer [192.168.1.107] HTTP server listening on port 54826 +16ms
EventedHTTPServer [192.168.1.107] HTTP request: /pair-setup +96ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +6ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 1/5 +36ms
EventedHTTPServer [192.168.1.107] HTTP Repsonse is finished +458ms
EventedHTTPServer [192.168.1.107] HTTP request: /pair-setup +28s
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +11ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 2/5 +18ms
EventedHTTPServer [192.168.1.107] HTTP Repsonse is finished +359ms
EventedHTTPServer [192.168.1.107] HTTP request: /pair-setup +43ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +9ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 3/5 +17ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 4/5 +180ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 5/5 +23ms
Accessory [Homebridge] Paired with client 2902A8F3-E586-414F-8EE4-D7F977899242 +51ms
EventedHTTPServer [192.168.1.107] HTTP Repsonse is finished +106ms
EventedHTTPServer [192.168.1.107] Client connection closed +58ms
EventedHTTPServer [192.168.1.107] New connection from client +71ms
EventedHTTPServer [192.168.1.107] HTTP server listening on port 54827 +13ms
EventedHTTPServer [192.168.1.107] HTTP connection was closed +48ms
EventedHTTPServer [192.168.1.107] HTTP server was closed +10ms
EventedHTTPServer [192.168.1.107] HTTP request: /pair-verify +45ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +4ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +25ms
EventedHTTPServer [192.168.1.107] HTTP Repsonse is finished +153ms
EventedHTTPServer [192.168.1.107] HTTP request: /pair-verify +38ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +4ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +18ms
HAPServer [CC:22:3D:E3:CE:30] Client 2902A8F3-E586-414F-8EE4-D7F977899242 verification complete +35ms
EventedHTTPServer [192.168.1.107] HTTP Repsonse is finished +19ms
EventedHTTPServer [192.168.1.107] HTTP request: /accessories +91ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +4ms
EventedHTTPServer [192.168.1.107] HTTP Repsonse is finished +61ms
EventedHTTPServer [192.168.1.107] New connection from client +597ms
EventedHTTPServer [192.168.1.107] HTTP server listening on port 54826 +14ms
EventedHTTPServer [192.168.1.107] Client connection closed +17ms
EventedHTTPServer [192.168.1.107] HTTP connection was closed +42ms
EventedHTTPServer [192.168.1.107] HTTP server was closed +8ms
EventedHTTPServer [192.168.1.107] HTTP request: /pair-verify +29ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +3ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +15ms
EventedHTTPServer [192.168.1.107] HTTP Repsonse is finished +94ms
EventedHTTPServer [192.168.1.107] Client connection closed +37ms
EventedHTTPServer [192.168.1.107] HTTP connection was closed +16ms
EventedHTTPServer [192.168.1.107] HTTP server was closed +5ms
Thank you!
PS After the 100500 attempt of the cleaning siri DB and persist folder it connects.
Re: Siri / HomeKit support for Domoticz
Posted: Friday 11 September 2015 13:27
by supermax
Can anyone help me. Have followed the guide and retried many times.
When i run npm run start
it just stay in EventedHTTPServer Server listening on port 51826 +28ms and never move on from there.
I have tried finding the device in eve and insteon without any luck.