Announcement

Collapse
No announcement yet.

Apple Homekit(Siri) integration with Homeseer

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

    Just tried a lock and got this error. Also, does this support batterylevel?

    PHP Code:

                  
    "ref":1576,
                  
    "type":"Lock",
                  
    "name":"Kitchen Door Lock",
                  
    "lockUnsecuredValues":[0,1,16,17,32,33],
                  
    "lockSecuredValues":[255],
                  
    "lockJammedValues":[254],
                  
    "unlockValue":0,
                  
    "lockValue":255


    PHP Code:
    Loading 2 platforms...
    [
    ThermostatInitializing Nest platform...
    [
    ThermostatFetching Nest devices.
    [
    HomeSeerInitializing HomeSeer platform...
    [
    HomeSeerFetching HomeSeer devices.
    Loading 0 accessories...
    [
    HomeSeerHomeSeer status function succeeded!
    [
    HomeSeerInitializing platform accessory 'Kitchen Door Lock'...
    /
    home/chris/homebridge/platforms/HomeSeer.js:967
                
    var lockService = new Service.Lock();
                                  ^
    TypeErrorundefined is not a function
        
    at Object.HomeSeerAccessory.getServices (/home/chris/homebridge/platforms/HomeSeer.js:967:31)
        
    at createAccessory (/home/chris/homebridge/app.js:146:36)
        
    at /home/chris/homebridge/app.js:132:27
        at 
    /home/chris/homebridge/node_modules/HAP-NodeJS/lib/util/once.js:15:19
        at Object
    .<anonymous> (/home/chris/homebridge/platforms/HomeSeer.js:243:17)
        
    at Request._callback (/home/chris/homebridge/platforms/HomeSeer.js:194:7)
        
    at Request.self.callback (/home/chris/homebridge/node_modules/request/request.js:373:22)
        
    at Request.emit (events.js:110:17)
        
    at Request.<anonymous> (/home/chris/homebridge/node_modules/request/request.js:1318:14)
        
    at Request.emit (events.js:129:20

    Comment


      Temperatur sensors - strange behavior

      I have setup my temp sensor, they show up fine in Eve. They are named "Kitchen Temperature", "Bedroom Temperature" etc. If I ask Siri "What is the bedroom temperature" Siri says "Sorry, I wasn't able to find any devices this time" but if I ask "What is the temperatur" Siri answers "The current temperaturs range from 13.4 to 34" - which the highest and lowest of the temperature sensors.

      Anyone?

      /Mav

      Comment


        Raspberry Pi 2 Homebridge w Webmin Image File

        Raspberry Pi 2 Homebridge with Webmin Image. - contact me via forum and I'll email you a download link. The Node.js is specific for Pi 2, if you have Pi 1 I can tell you how to modify the Node.js for the Pi1 processor.

        1. This image is ready to go. Pretty much Plug n Play.
        2. Added script for auto load of Homebridge on Start of Pi
        3. Added Webmin(GUI) so you don't need to deal with putty or other ssh.
        You can access your pi files(to modify) via any computer via https://appliance_ip:10000/

        4. This image has Homeseer Platform v8. Does lights, locks, events etc.
        But if you want more devices, you will need to update to current version as Stipus keeps adding functionality.
        5. File is 2GB. You will need 8 GB SD card to burn image onto( use Win32DiskImager)



        History:
        I tried windows several times and gave me lots of errors. Also my mini-itx was starting to get bloated with a bunch of software, that could cause issues. Wanting to preserve my HS machine for just HS, I went the Raspberry Pi route.
        Pi - all the instruction out there, even on Pi Homebridge on github gave me errors. After a few hours I gave up and decided ask others for their pi image, but some didn't know how to upload and/or others didn't want to share their work. So I spent a few more hours and finally go it working, then added extras.
        There is no need for all of us to go through the same pain. :-)
        Attached Files
        Last edited by TomTom; October 15, 2015, 01:50 PM.
        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


          There is a new way for installing :

          https://github.com/nfarina/homebridg...dge-on-Windows

          all the programs need to be installed in 32 bit NOT 64

          so if people want to try again , just go ahead

          it is working for some people , not for me , i get 1 last error with it now :


          PHP Code:
          C:\Users\Home Security System\Desktop\homebridge\node_modules\HAP-NodeJS\node_m
          odules
          \ed25519\build\ed25519.vcxproj(20,3): error MSB4019The imported project
          "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Default.
          props" 
          was not foundConfirm that the path in the declaration is corr
          ect
          , and that the file exists on disk
          Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
          Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




          HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.

          Comment


            Originally posted by stipus View Post
            Here is a new version V0.8 of the HomeSeer platform for HomeBridge.

            Changes:

            All HomeSeer accessories and events have a new parameter "uuid_base"
            Set this uuid_base to an unique identifier that will never change.

            homebridge will use the accessory type and accessory uuid to create the HomeKit identifier for the accessory.

            pros:
            - You can then change the device name as you which, as long as you don't change uuid_base
            - You can have several HomeKit devices with the same name, as long as uuid_base is different.

            cons:
            - If you set uuid_base to an already existing accessory, HomeKit will think it's a new one.

            Sample configuration:

            PHP Code:
                     "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
                           
            "uuid_base":"SomeUniqueId"     // Optional - HomeKit identifier will be derived from this parameter instead of the name
                        
            }
                     ],

                     
            "accessories":[                      // Required - List of Accessories
                        
            {
                          
            "ref":8,                        // Required - HomeSeer Device Reference (To get it, select the HS Device - then Advanced Tab) 
                          
            "type":"Lightbulb",             // Optional - Lightbulb is the default
                          
            "name":"My Light",              // Optional - HomeSeer device name is the default
                          
            "offValue":"0",                 // Optional - 0 is the default
                          
            "onValue":"100",                // Optional - 100 is the default
                          
            "can_dim":true,                 // Optional - true is the default - false for a non dimmable lightbulb
                          
            "uuid_base":"SomeUniqueId2"     // Optional - HomeKit identifier will be derived from this parameter instead of the name
                        
            }, 
            I use the HS reference for the unique ID - I guess thats ok, I have lightbulps, switches and temeraturesensors in my config at the moment - is the uuid parameter applicable for all device types or just lightbulp?

            Thanks again

            /Mav

            Comment


              Originally posted by maverick View Post
              I have setup my temp sensor, they show up fine in Eve. They are named "Kitchen Temperature", "Bedroom Temperature" etc. If I ask Siri "What is the bedroom temperature" Siri says "Sorry, I wasn't able to find any devices this time" but if I ask "What is the temperatur" Siri answers "The current temperaturs range from 13.4 to 34" - which the highest and lowest of the temperature sensors.

              Anyone?

              /Mav

              I had more luck with "what is the temperature in the kitchen" where I had a thermostat named Kithcen Temp in the room Kitchen. It looked to the Homekit room, not the words int he device name.

              Comment


                Originally posted by askme View Post
                I had more luck with "what is the temperature in the kitchen" where I had a thermostat named Kithcen Temp in the room Kitchen. It looked to the Homekit room, not the words int he device name.
                I got some og them working now - not consistent though - thanks for the hint

                /Mav

                Comment


                  Originally posted by maverick View Post
                  I use the HS reference for the unique ID - I guess thats ok, I have lightbulps, switches and temeraturesensors in my config at the moment - is the uuid parameter applicable for all device types or just lightbulp?

                  Thanks again

                  /Mav
                  Yes it's a good idea to use the HS reference.
                  the uuid_base parameter is valid for all accessories.
                  I think it must be a string, but I'm not sure.

                  I cannot use the ref internally, as you may declare multiple HomeKit accessories with the same HomeSeer device ref. For example, I have seen the case of a HomeKit smoke sensor and a HomeKit carbon monoxide sensor, both mapped to a single HomeSeer device.
                  Last edited by stipus; October 15, 2015, 04:58 PM.
                  --
                  stipus

                  Comment


                    Originally posted by madmax View Post
                    Just tried a lock and got this error. Also, does this support batterylevel?
                    Homekit Locks do not support battery level. However, you can add a specific "Battery" accessory.

                    I think I fixed the locks.... Please try with the new attached version.

                    *EDIT* Attachement removed as a new version is available
                    Last edited by stipus; October 15, 2015, 03:56 PM.
                    --
                    stipus

                    Comment


                      Windows platform!

                      Ok, here we go! Follow these steps to get the Homebridge-homeseer package running on your Windows box:

                      1) Download and install Bonjour: https://support.apple.com/kb/DL999?v...L&locale=nl_NL
                      2) Download http://greedy.reflexlight.nl/homesee...e-homeseer.zip
                      3) extract homebridge-homeseer.zip to c:\homebridge-homeseer (do not choose another path, unless you know what you're doing!)
                      4) Edit the config file config.json with your devices
                      5) Browse to c:\homebridge-homeseer
                      6) Run homebridge-homeseer.cmd to test your installation. It should report:
                      Code:
                      Starting Homebridge server...
                      Loading 1 platforms...
                      ..
                      ..
                      7) Press CTRL+C and enter Y to terminate the batch job.
                      8) Edit c:\homebridge-homeseer\homebridge-homeseer.cmd:
                      - Change the first "goto main" (line 11) to "goto main_redirected"
                      9) Add the following line to startup.vb (from your homeseer installation directory), just before "End Sub":
                      Code:
                          ' Start Homebridge-Homeseer
                          hs.Launch("C:\homebridge-homeseer\homebridge-homeseer.cmd","","C:\homebridge-homeseer",0)
                      10) Restart Homeseer.
                      11) When Homeseer has been started successfull, it should start homebridge-homeseer after a minute in a CMD window:
                      Code:
                      Starting Homebridge-Homeseer
                      Do not close this screen
                      Output will be logged to c:\homebridge-homeseer\homebridge-homeseer.log
                      If it is all running fine, you can always update your installation to the latest version of HomeSeerPlatform by just replacing the homeseer.js in c:\homebridge-homeseer\platforms with the latest version provided by stipus

                      Many thanks to stipus! He did a really good job by creating this platform!

                      Good luck!
                      Erwin
                      Last edited by ewillems; August 29, 2016, 01:43 AM.

                      Comment


                        Originally posted by stipus View Post
                        Homekit Locks do not support battery level. However, you can add a specific "Battery" accessory.

                        I think I fixed the locks.... Please try with the new attached version.

                        I just tried and got this error
                        PHP Code:
                        Loading 2 platforms...
                        [
                        ThermostatInitializing Nest platform...
                        [
                        ThermostatFetching Nest devices.
                        [
                        HomeSeerInitializing HomeSeer platform...
                        [
                        HomeSeerFetching HomeSeer devices.
                        Loading 0 accessories...
                        [
                        HomeSeerHomeSeer status function succeeded!
                        [
                        HomeSeerInitializing platform accessory 'Kitchen Door Lock'...
                        /
                        home/chris/homebridge/platforms/HomeSeer.js:970
                                        
                        .on('get'this.getLockCurrentState.bind(this));
                                        ^
                        TypeErrorCannot read property 'on' of undefined
                            at Object
                        .HomeSeerAccessory.getServices (/home/chris/homebridge/platforms/HomeSeer.js:970:17)
                            
                        at createAccessory (/home/chris/homebridge/app.js:146:36)
                            
                        at /home/chris/homebridge/app.js:132:27
                            at 
                        /home/chris/homebridge/node_modules/HAP-NodeJS/lib/util/once.js:15:19
                            at Object
                        .<anonymous> (/home/chris/homebridge/platforms/HomeSeer.js:243:17)
                            
                        at Request._callback (/home/chris/homebridge/platforms/HomeSeer.js:194:7)
                            
                        at Request.self.callback (/home/chris/homebridge/node_modules/request/request.js:373:22)
                            
                        at Request.emit (events.js:110:17)
                            
                        at Request.<anonymous> (/home/chris/homebridge/node_modules/request/request.js:1318:14)
                            
                        at Request.emit (events.js:129:20

                        Comment


                          Originally posted by madmax View Post
                          I just tried and got this error
                          PHP Code:
                          Loading 2 platforms...
                          [
                          ThermostatInitializing Nest platform...
                          [
                          ThermostatFetching Nest devices.
                          [
                          HomeSeerInitializing HomeSeer platform...
                          [
                          HomeSeerFetching HomeSeer devices.
                          Loading 0 accessories...
                          [
                          HomeSeerHomeSeer status function succeeded!
                          [
                          HomeSeerInitializing platform accessory 'Kitchen Door Lock'...
                          /
                          home/chris/homebridge/platforms/HomeSeer.js:970
                                          
                          .on('get'this.getLockCurrentState.bind(this));
                                          ^
                          TypeErrorCannot read property 'on' of undefined
                              at Object
                          .HomeSeerAccessory.getServices (/home/chris/homebridge/platforms/HomeSeer.js:970:17)
                              
                          at createAccessory (/home/chris/homebridge/app.js:146:36)
                              
                          at /home/chris/homebridge/app.js:132:27
                              at 
                          /home/chris/homebridge/node_modules/HAP-NodeJS/lib/util/once.js:15:19
                              at Object
                          .<anonymous> (/home/chris/homebridge/platforms/HomeSeer.js:243:17)
                              
                          at Request._callback (/home/chris/homebridge/platforms/HomeSeer.js:194:7)
                              
                          at Request.self.callback (/home/chris/homebridge/node_modules/request/request.js:373:22)
                              
                          at Request.emit (events.js:110:17)
                              
                          at Request.<anonymous> (/home/chris/homebridge/node_modules/request/request.js:1318:14)
                              
                          at Request.emit (events.js:129:20
                          *EDIT* Attachement removed as a new version is available.
                          Last edited by stipus; October 16, 2015, 09:55 AM.
                          --
                          stipus

                          Comment


                            Nice work Erwin! Thank you!!

                            Originally posted by ewillems View Post
                            Ok, here we go! Follow these steps to get the Homebridge-homeseer package running on your Windows box:
                            Erwin
                            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 ewillems View Post
                              Ok, here we go! Follow these steps to get the Homebridge-homeseer package running on your Windows box:

                              1) Download and install Bonjour: https://support.apple.com/kb/DL999?v...L&locale=nl_NL
                              2) Download http://greedy.reflexlight.nl/homesee...e-homeseer.zip
                              3) extract homebridge-homeseer.zip to c:\homebridge-homeseer (do not choose another path, unless you know what you're doing!)
                              4) Edit the config file config.json with your devices
                              5) Browse to c:\homebridge-homeseer
                              6) Edit c:\homebridge-homeseer\homebridge-homeseer.cmd:
                              - Change the first "goto main_logged" (line 11) to "goto main"
                              7) Run homebridge-homeseer.cmd to test your installation. It should report:
                              Code:
                              Starting Homebridge server...
                              Loading 1 platforms...
                              ..
                              ..
                              8) Press CTRL+C and enter Y to terminate the batch job.
                              9) Edit c:\homebridge-homeseer\homebridge-homeseer.cmd:
                              - Change the first "goto main" (line 11) to "goto main_logged"
                              10) Add the following line to startup.vb (from your homeseer installation directory), just after "End Sub":
                              Code:
                                  ' Start Homebridge-Homeseer
                                  hs.Launch("C:\homebridge-homeseer\homebridge-homeseer.cmd","","C:\homebridge-homeseer",0)
                              11) Restart Homeseer.
                              12) When Homeseer has been started successfull, it should start homebridge-homeseer after a minute in a CMD window:
                              Code:
                              Starting Homebridge-Homeseer
                              Do not close this screen
                              Output will be logged to c:\homebridge-homeseer\homebridge-homeseer.log
                              If it is all running fine, you can always update your installation to the latest version of HomeSeerPlatform by just replacing the homeseer.js in c:\homebridge-homeseer\platforms with the latest version provided by stipus

                              Many thanks to stipus! He did a really good job by creating this platform!

                              Good luck!
                              Erwin

                              Awesome work!!!!
                              Everything works perfect, but getting this during strat up and no cmd window (still works if start manually)
                              Oct-15 4:22:56 PM Error Compiling script Startup.vb: Declaration expected.
                              Oct-15 4:22:56 PM Error Compiling script Startup.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

                              To fix issue:
                              10) Add the following line to startup.vb (from your homeseer installation directory), just after "End Sub":
                              Code:
                              Should read before


                              Thanks,
                              Steven G
                              Last edited by steveng; October 15, 2015, 04:36 PM.

                              Comment


                                Originally posted by maverick View Post
                                I have setup my temp sensor, they show up fine in Eve. They are named "Kitchen Temperature", "Bedroom Temperature" etc. If I ask Siri "What is the bedroom temperature" Siri says "Sorry, I wasn't able to find any devices this time" but if I ask "What is the temperatur" Siri answers "The current temperaturs range from 13.4 to 34" - which the highest and lowest of the temperature sensors.

                                Anyone?

                                /Mav
                                In my case, I have one temperature sensor in the attic (HomeKit room called attic) and one thermostat in the living-room (again a HomeKit room called living-room)

                                I can ask Siri :
                                - what's the living room temperature ?
                                - what's the attic temperature ?
                                .. And Siri answers the correct result each time.

                                (This this translated from French, ... I'm not sure of the exact Siri requests in English)

                                The key is to create HomeKit rooms with any HomeKit app (eve, iControl....) and configure the sensor to be in the right room. The name of the temperature sensor or thermostat doesn't seem to be important.
                                --
                                stipus

                                Comment

                                Working...
                                X