Announcement

Collapse
No announcement yet.

Apple Homekit(Siri) integration with Homeseer

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

    Originally posted by stipus View Post
    Are you certain you have the latest HomeSeer.js in the homebridge/platforms directory ?
    //
    // HomeSeer Platform Shim for HomeBridge
    // V0.1 - Jean-Michel Joudrier (stipus at stipus dot com) - 2015/10/07
    // - Initial version
    // V0.2 - Jean-Michel Joudrier (stipus at stipus dot com) - 2015/10/10
    // - Occupancy sensor fix
    // V0.3 - Jean-Michel Joudrier (stipus at stipus dot com) - 2015/10/11
    // - Added TemperatureUnit=F|C option to temperature sensors
    // - Added negative temperature support to temperature sensors
    // V0.4 - Jean-Michel Joudrier (stipus at stipus dot com) - 2015/10/12
    // - Added thermostat support
    //

    Comment


      Please try with the new version I posted about 10 posts ahead.

      I'm sure it works as I'm currently using it for 2 temperature sensors and one thermostat.

      I know that one of the earlier version posted here has a bug.
      --
      stipus

      Comment


        Originally posted by stipus View Post
        Please try with the new version I posted about 10 posts ahead.

        I'm sure it works as I'm currently using it for 2 temperature sensors and one thermostat.

        I know that one of the earlier version posted here has a bug.
        ok, I'll try it and let you know.

        Edit: I just checked and now I do have v0.6 but still getting the same error, does it matter that I left out the battery stuff?
        {
        "ref":28,
        "type":"TemperatureSensor",
        "temperatureUnit":"F",
        "name":"Bedroom temp"

        },

        Comment


          Or maybe you have an outdated version of HomeBridge

          I use the Characteristic.setProps() function to handle negative temperatures, and I know this function has been added to homebridge in one of the latest versions.

          If you don't have enough time to upgrade homebridge, and you don't want to handle negative temperatures (as you are using fahrenheit), you may remove those two lines from the HomeSeer.js code

          PHP Code:
                      temperatureSensorService
                          
          .getCharacteristic(Characteristic.CurrentTemperature).setProps( {minValue: -100} ); 
          --
          stipus

          Comment


            Originally posted by stipus View Post
            Or maybe you have an outdated version of HomeBridge

            I use the Characteristic.setProps() function to handle negative temperatures, and I know this function has been added to homebridge in one of the latest versions.

            If you don't have enough time to upgrade homebridge, and you don't want to handle negative temperatures (as you are using fahrenheit), you may remove those two lines from the HomeSeer.js code

            PHP Code:
                        temperatureSensorService
                            
            .getCharacteristic(Characteristic.CurrentTemperature).setProps( {minValue: -100} ); 
            Sounds like that might be the issue, but I updated this AM and it showed newer files after that, unless I'm doing it wrong.
            I just tried updating my home bridge now and it shows it's up to date.

            ~/homebridge$ git pull

            Already up-to-date.

            Comment


              hmmm .... can you check the content of the following file:

              homebridge/node_modules/HAP-NodeJS/lib/Characteristics.js

              The latest version of Node-HAP has the function Characteristic.setProps()

              Check the latest version here line 108:
              https://github.com/KhaosT/HAP-NodeJS...racteristic.js
              --
              stipus

              Comment


                from this post:
                http://davidwalsh.name/update-submodules-git

                I think you also have to update homebridge submodules with the command:

                git submodule update --init --recursive

                (I didn't try this command)
                --
                stipus

                Comment


                  Originally posted by stipus View Post
                  hmmm .... can you check the content of the following file:

                  homebridge/node_modules/HAP-NodeJS/lib/Characteristics.js

                  The latest version of Node-HAP has the function Characteristic.setProps()

                  Check the latest version here line 108:
                  https://github.com/KhaosT/HAP-NodeJS...racteristic.js
                  I just did an npm update and now it works, I checked the line you mentioned and it was there after the update, I hadn't checked before though, didn't see your post until after. Thanks for all the help!

                  Comment


                    Good to know that it's better to "npm update" than "git pull"
                    --
                    stipus

                    Comment


                      The latest HomeSeer platform (V0.6) is now available from the HomeBridge github repository

                      https://github.com/nfarina/homebridge


                      - Added run HomeSeer event support. Each HomeSeer event is imported into HomeKit as a switch.
                      - Added Low Battery support for all sensors
                      - Added Battery Device support

                      Sample config for new features:

                      PHP Code:
                           {
                               
                      "platform""HomeSeer",              // Required
                               
                      "name""HomeSeer",                  // Required
                               
                      "host""http://192.168.3.4:81",     // Required - If you did setup HomeSeer authentication, use "http://user:password@ip_address:port"

                               
                      "events":[                           // Optional - List of Events - Currently they are imported into HomeKit as switches
                                  
                      {
                                     
                      "eventGroup":"My Group",       // Required - The HomeSeer event group
                                     
                      "eventName":"My Event",        // Required - The HomeSeer event name
                                     
                      "name":"Test"                  // Optional - HomeSeer event name is the default
                                  
                      }
                               ],

                               
                      "accessories":[                      // Required - List of Accessories
                                  
                      {
                                    
                      "ref":111,                      // Required - HomeSeer Device Reference for your sensor
                                    
                      "type":"TemperatureSensor",     // Required for a temperature sensor
                                    
                      "temperatureUnit":"F",          // Optional - C is the default
                                    
                      "name":"Bedroom temp",          // Optional - HomeSeer device name is the default
                                    
                      "batteryRef":112,               // Optional - HomeSeer device reference for the sensor battery level
                                    
                      "batteryThreshold":15           // Optional - If sensor battery level is below this value, the HomeKit LowBattery characteristic is set to 1. Default is 10
                                  
                      },
                                  {
                                    
                      "ref":115,                      // Required - HomeSeer Device Reference for a device holding battery level (0-100)
                                    
                      "type":"Battery",               // Required for a Battery
                                    
                      "name":"Roomba battery",        // Optional - HomeSeer device name is the default
                                    
                      "batteryThreshold":15           // Optional - If the level is below this value, the HomeKit LowBattery characteristic is set to 1. Default is 10
                                  
                      }
                               ]
                           } 

                      The list of supported types is the following:

                      PHP Code:
                       Lightbulb         (can_dimonValueoffValue options)
                       - 
                      Fan               (onValueoffValue options)
                       - Switch            (
                      onValueoffValue options)
                       - 
                      Outlet            (onValueoffValue options)
                       - 
                      Thermostat        (temperatureUnitsetPointstatecontrol options)
                       - 
                      TemperatureSensor (temperatureUnit=C|F)
                       - 
                      ContactSensor     (0=no contact1=contact batteryRefbatteryThreshold option)
                       - 
                      MotionSensor      (0=no motion1=motion  batteryRefbatteryThreshold option)
                       - 
                      LeakSensor        (0=no leak1=leak  batteryRefbatteryThreshold option)
                       - 
                      LightSensor       (HomeSeer device value in Lux  batteryRefbatteryThreshold option)
                       - 
                      HumiditySensor    (HomeSeer device value in %  - batteryRefbatteryThreshold option)
                       - 
                      OccupancySensor   (0=no occupancy1=occupancy  batteryRefbatteryThreshold option)
                       - 
                      SmokeSensor       (0=no smoke1=smoke  batteryRefbatteryThreshold option)
                       - 
                      Battery           (batteryThreshold option)
                       - 
                      Door 
                      --
                      stipus

                      Comment


                        Originally posted by ewillems View Post
                        I will try to upgrade my Homebridge installation and create a single .zip file ready to run on every Windows pc.
                        Ewillems, love this idea. Lookin' forward to this. Thanks in advance!!!
                        Tom
                        baby steps...starting again with HS3
                        HS3Pro: Z-NET & 80 Z wave Devices,
                        HSTouch: 4 Joggler (Android Kitkat), 2 iPhone, 3 iPads
                        Whole House Audio: 5 SqueezePlay Jogglers w Bose Speakers
                        In The Works: 10 Cameras Geovision, new Adecmo/Envisalink Alarm, Arduinos
                        System: XP on Fanless Mini-ITX w/ SSD

                        Comment


                          Originally posted by stipus View Post
                          Try to change the name property.

                          Homebridge creates UUID from names.
                          Same name --> same UUID
                          I did try that, same error:

                          {
                          "platform" : "Nest",
                          "name" : "Nest1",
                          "username" : "username",
                          "password" : "password"
                          },
                          {
                          "platform" : "Nest",
                          "name" : "Nest2",
                          "username" : "username",
                          "password" : "password"
                          },

                          Comment


                            I just tried a Door Sensor and it's not quite working. My device is 0 for closed and 255 for open. The eve app shows it as a Position 0% and Closing. Is 'Door' actually Garage Door? I have both Open/Closed door sensors and a Garage Door opener so I could test both if Implemented. Also, do normal open/closed doors support the new battery Level parm?

                            Thanks

                            Comment


                              I had a quick look at the source code for the NEST platform and:

                              1) You cannot declare multiple NEST platforms

                              2) The NEST platform should be able to find multiple NEST thermostats
                              --
                              stipus

                              Comment


                                Also,
                                I think the Smoke 0/1 sensors will not work for a lot of z-wave users. I have several Z-Wave smoke detectors and here are the parms. I think 1 would only occur after silencing the alarm. A Device like this could also be a CO detector too. I think that'd require implementing another device though.
                                Attached Files

                                Comment

                                Working...
                                X