Announcement

Collapse
No announcement yet.

Apple Homekit(Siri) integration with Homeseer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apple Homekit(Siri) integration with Homeseer

    I was tracking efforts by jayman and fraggel, and I thought there was a HS development effort as well, but all seems quiet.

    I would like to get into using HomeKit with homebridge, but not if others have tried and failed or are about to unleash awesomeness.
    Last edited by askme; October 9, 2015, 10:48 PM. Reason: Clarity

    #2
    home kit with homeseer

    I've been using an Ubuntu server to run the Homekit bridge server and control lights and some other devices on my homeseer2 system for several months now. It works very reliably but you have to set up control of each device inside the home kit server config files so it passes the request over to homeseer.

    I'm using Nick Farina's version here.

    https://github.com/nfarina/homebridge


    It's been very reliable, but like I stated before you have to configure each device you want to control. My method doesn't discover the Homeseer devices.
    I saw that others on here were working on something that would do that, but never saw any updates. So I decided to take matters into my own hands.
    Last edited by tommyd75; October 13, 2015, 09:12 PM. Reason: Typo

    Comment


      #3
      Thanks. I'll just roll my own. Did you configure each device natively in homebridge or did you create and virtual devices managed by homeseer? I can't imagine setting up my home security system directly in homebridge, but could see setting up some kind of link to the existing events/scripts I use to interface to it.

      Comment


        #4
        tommyd75,

        Just downloaded and installed the package... This sounds very interesting !

        Could you post a sample of your config.json to address one of the HomeSeer devices ?

        Are you using the http shim ?

        PHP Code:
                {
                    
        "accessory""Http",
                    
        "name""Kitchen Lamp",
                    
        "on_url""https://192.168.1.22:3030/devices/23222/on",
                    
        "off_url""https://192.168.1.22:3030/devices/23222/off",
                    
        "brightness_url""https://192.168.1.22:3030/devices/23222/brightness/%b",
                    
        "http_method""POST"
                

        TIA,
        --
        stipus

        Comment


          #5
          Yay thanks Tommyd ... I can now control my Hue Lights and other HomeSeer devices (fan/screen/other HS controlled lights) using SIRI from the Apple watch ... that's coooooool !

          If anyone else is interested, here is my config.json

          PHP Code:
          {
              
          "bridge": {
                  
          "name""Homebridge",
                  
          "username""XXXXXX",
                  
          "port"51826,
                  
          "pin""XXXXXX"
              
          },
              
              
          "description""This is an example configuration file with all supported devices. You can use this as a template for creating your own configuration file containing devices you actually own.",

              
          "platforms": [
                  {
                      
          "platform""PhilipsHue",
                      
          "name""Phillips Hue",
                      
          "ip_address""XXXXXX",
                      
          "username""XXXXXX"
                  
          }
              ],

              
          "accessories": [
                  {
                      
          "accessory""Http",
                      
          "name""Écran",
                      
          "on_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=55&value=101",
                      
          "off_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=55&value=0",
                      
          "http_method""GET"
                  
          },
              {
                      
          "accessory""Http",
                      
          "name""Ventilateur",
                      
          "on_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=91&value=101",
                      
          "off_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=91&value=0",
                      
          "http_method""GET"
                  
          },
              {
                      
          "accessory""Http",
                      
          "name""Lustre",
                      
          "on_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=7&value=101",
                      
          "off_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=7&value=0",
                      
          "brightness_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=7&value=%b",
                      
          "http_method""GET"
                  
          },
              {
                      
          "accessory""Http",
                      
          "name""Halogène",
                      
          "on_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=8&value=101",
                      
          "off_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=8&value=0",
                      
          "brightness_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=8&value=%b",
                      
          "http_method""GET"
                  
          },
              {
                      
          "accessory""Http",
                      
          "name""Lampe Orange",
                      
          "on_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=9&value=101",
                      
          "off_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=9&value=0",
                      
          "brightness_url""http://192.168.3.4:81/JSON?request=controldevicebyvalue&ref=9&value=%b",
                      
          "http_method""GET"
                  
          }
              ]

          --
          stipus

          Comment


            #6
            Did you use the basic Homebridge or the tweaked version for Vera?

            Comment


              #7
              I did use Nick Farina's version here.

              https://github.com/nfarina/homebridge

              At the beginning, it did not seem to work very well (siri not understanding what I meant), but it looks like siri is learning my accessory names, and it works better and better !
              --
              stipus

              Comment


                #8
                You need to install Node.js before installing HomeBridge.

                I installed temporarily on a Mac, but you can find a tuto here to install Node.js on a Windows computer:
                http://blog.teamtreehouse.com/instal...js-npm-windows
                --
                stipus

                Comment


                  #9
                  Thanks. Node.js up and running, homebridge downloaded. I will borrow your accessorie setups to get started.

                  Comment


                    #10
                    Based on the Http shim, I'm currently coding 2 new accessory types specific to HomeSeer:
                    - HomeSeerLamp
                    - HomeSeerDevice

                    The goal is to read HomeSeer device status from HomeKit...

                    Best regards,
                    --
                    stipus

                    Comment


                      #11
                      homekit with homeseer

                      Yes, I'm mostly using the Http shim. Here's an example, this device is an X10 device with the address of K9, also you need to have either the json api (https://github.com/espenhogbakk/homeseer-jsonapi) installed on Homeseer server
                      or the tenHsServer (http://tenholder.net/tenWare2/tenHsServer/default.aspx) installed on Homeseer server,

                      {
                      "accessory": "Http",
                      "name": "Second Floor Hallway Light",
                      "on_url": "http://192.168.1.100/jsonapi.asp?action=deviceon&id=K9",
                      "off_url": "http://192.168.1.100/jsonapi.asp?action=deviceoff&id=K9",
                      "brightness_url": "http://192.168.1.100/tenHsServer/tenHsServer.aspx?t=ab&f=ExecX10&d=K9&a=Dim&s=%b",
                      "http_method": "GET"

                      },





                      Originally posted by stipus View Post
                      tommyd75,

                      Just downloaded and installed the package... This sounds very interesting !

                      Could you post a sample of your config.json to address one of the HomeSeer devices ?

                      Are you using the http shim ?

                      PHP Code:
                              {
                                  
                      "accessory""Http",
                                  
                      "name""Kitchen Lamp",
                                  
                      "on_url""https://192.168.1.22:3030/devices/23222/on",
                                  
                      "off_url""https://192.168.1.22:3030/devices/23222/off",
                                  
                      "brightness_url""https://192.168.1.22:3030/devices/23222/brightness/%b",
                                  
                      "http_method""POST"
                              

                      TIA,

                      Comment


                        #12
                        Well that was five hours of my life I won't get back.

                        Comment


                          #13
                          Originally posted by tommyd75 View Post
                          Yes, I'm mostly using the Http shim. Here's an example, this device is an X10 device with the address of K9, also you need to have either the json api (https://github.com/espenhogbakk/homeseer-jsonapi) installed on Homeseer server
                          or the tenHsServer (http://tenholder.net/tenWare2/tenHsServer/default.aspx) installed on Homeseer server,
                          HS3 has a JSON API. There is no need to install anything else as far as I know.
                          --
                          stipus

                          Comment


                            #14
                            Yes you're correct about HS3 but I'm using HS2 with my system.

                            Comment


                              #15
                              I did code a HomeBridge platform for HomeSeer.

                              It automatically imports the HomeSeer devices you want into HomeKit, lets you control the devices and get devices status

                              Currently I only have control and status for lights (on/off/brightness), but I'm going to add other device types....

                              If anyone is interested, I can post the code...
                              --
                              stipus

                              Comment

                              Working...
                              X