Jump to content
C4 Forums | Control4

Siri and HomeKit for Control4


niall

Recommended Posts


  • Replies 102
  • Created
  • Last Reply

It was pretty straightforward before things changed...now that I have a new Raspberry pi 2 I want it to work but the constant errors does try your patience...  Hoping to get things working (maybe C4 will beat me to it with direct homekit integration in 3.0!...I can at least dream!).

Link to comment
Share on other sites

Just ran through building an image and captured the output.

 

Just testing the image works on both pi 1 and pi 2 and then I'll post it.

 

The tldr; is

 

sudo apt-get update

sudo apt-get upgrade
sudo apt-get install libavahi-compat-libdnssd-dev
sudo apt-get install libkrb5-dev
tar -xvf node-v4.2.2-linux-armv6l.tar.gz
cd node-v4.2.2-linux-armv6l/
sudo cp -R * /usr/local/
node -v
sudo npm install -g homebridge
sudo npm install -g homebridge-http
sudo nano /etc/hosts
 
** Change the last entry to
127.0.1.1 homebridge
sudo nano /etc/hostname
** change the entry to 
homebridge
 
cd .homebridge/
nano config.json
** Put your config.json in the file
 
sudo mv template /etc/init.d/homebridge
sudo nano /etc/init.d/homebridge
 
** Change the top of the file to
 
#!/bin/sh
### BEGIN INIT INFO
# Provides: HomeBridge
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO
 
dir="/home/pi/.homebridge"
cmd="homebridge"
user="pi"
 
sudo reboot
 
*** To get back in, you can use
 
ssh pi@homebridge.local
 
*** To see if its running
 
pi@homebridge ~ $ /etc/init.d/homebridge status
Running
 
Link to comment
Share on other sites

I've posted an image for the raspberry pi, testing it on both 1 and 2 so it should be ok.

 

You need a flash card of at least 8GB as I didn't have a smaller one to build it with.

 

http://fuelservice.org/homebridge.img.zip

 

Once you have put it on a flash then you can book and the username is pi, password is raspberry.

All thats needed is to create the config

cd .homebridge/

nano config.json
 
Then you can start it with /etc/init.d/homebridge start
 
It should automatically start when you reboot it as well.
Link to comment
Share on other sites

The image download won't get over 1gig...  Tried twice at different locations...

 

Tried the manual way...got all the way through but homebridge isn't running.  Tried to start it with sudo /etc/init.d/homebridge start

but get the following from pi@homebridge ~/.homebridge $

starting homebridge

/etc/init.d/homebridge: 35: cd: can't cd to /home/pi/.homebridge

 

Even if I just start homebridge (homebridge start), I get errors.  When I check the status it just says 'stopped'

 

Can you repost image since its probably the easiest?

Link to comment
Share on other sites

Thank You!  The small image worked fine.  I reimaged my micro sd card and it took perfectly.  I changed the config.json and added it via the Eve app.  Now I'm going to setup some commands and see if Siri will recognize and complete the event.  I already confirmed the events using a web broswer and URL and got 'Succesful'. 

Link to comment
Share on other sites

I was able to install the image, get the web events to work in C4 for the URL to call them, but the app (Eve) setup isn't as straightforward and can't get it to work.  Been trying to get that setup without success.  (C4 is never going to go this route without alot of development on the appp side and controller...alot of other issues to deal). 

 

msgreenf: the pin needs to match your config.json   if those match then just manually enter and it should find it. (even after matching pin and seeing the accessories, hearing Siri say 'Sorry, I wasn't able to find any devices at this time' over and over is frustrating!

 

Do you know if you need an action for each on/off command so it would result in this or just one to turn on&off?  Also, I got one scene to work in Eve and that I believe is the key I'm missing...

        {
            "accessory": "Http",
            "name": "Front Door Unlock",
            "on_url": "http://192.168.1.6:8080/frontdoorunlock_on",
            "off_url": "http://192.168.1.6:8080/frontdoorunlock_off",
            "http_method": "GET",
            "username": "username",
            "password": "password"
        },

       {
            "accessory": "Http",
            "name": "Front Door Lock",
            "on_url": "http://192.168.1.6:8080/frontdoorlock_on",
            "off_url": "http://192.168.1.6:8080/frontdoorlock_off",
            "http_method": "GET",
            "username": "username",
            "password": "password"
        }
 

Link to comment
Share on other sites

I assume that to add the WebEvents driver you need to be running Composer Pro, correct?  Is there anything else that requires Composer Pro?

 

I think I may have had my dealer install that in the past - how would I be able to tell if I have it installed?

Link to comment
Share on other sites

Yes, you need WebEvents Driver installed and then everything can be done using ComposerHE.  You should be able to see it or whatever he named it within a room.

 

I finally got it to work...was the Eve app that gave me issues.

Link to comment
Share on other sites

  • 3 weeks later...

I have a raspberry pi 2 running the services (node etc...) for C4 to utilize Siri...has anyone noticed a spike in network traffic besides me?  I'm seeing alot and after removing, the network is fine...  I know it could be a ton of things but just wondered if anyone else is experience such?

Link to comment
Share on other sites

Could anyone help me out? I have everything installed on my iMac but home bridge is looking for the config file in a folder named ".homebridge". I tried to create the folder but it won't let me name it with only the "." In front...

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.