Announcement

Collapse
No announcement yet.

Apple Homekit(Siri) integration with Homeseer

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

    Linux paths are very similar. They use forward slashs instead of backslashes, and always start with a /

    A Linux path is something like:
    /mnt/user/etc/config.json
    --
    stipus

    Comment


      Originally posted by stipus View Post
      Linux paths are very similar. They use forward slashs instead of backslashes, and always start with a /

      A Linux path is something like:
      /mnt/user/etc/config.json
      Can someone test my plugin with Linux ? Especially the path part ?

      I need today to finish the first version and make it available in the HS app store.
      Regards,

      Rien du Pre
      The Netherlands
      Using:
      Homeseer PRO latest HS4 BETA on a Raspberry
      Plugin's:
      RFXCOM, mcsMQTT, Z-Wave

      Comment


        Quote:
        **************
        Can someone test my plugin with Linux ? Especially the path part ?

        I need today to finish the first version and make it available in the HS app store.
        **************

        Well i have a raspberry and are willing to give it a try.
        For your information the config.json is settelt at:
        /root/.homebridge/config.json
        The persist directory (to delete after modifying the config.json):
        /root/.homebridge/persist
        Homebridge start command:
        /etc/init.d/homebridge start
        Homebridge stop command:
        /etc/init.d/homebridge stop
        The homeseer directory (case sensitive):
        /usr/local/HomeSeer


        But i also have one question for you:
        What do you have to say in Dutch tot get a 'rolluik' up and down with WindowCovering?
        Because no matter what I yell to Siri(open, openen, dicht, op slot, naar beneje nondeju!), he just ignores me on a irritating manner :-(
        Everything else he accepted(lights etc.), tried with the Home app as well as the Eve app, but no luck sofar...

        Comment


          Originally posted by Child_Roman View Post
          Quote:
          **************
          Can someone test my plugin with Linux ? Especially the path part ?

          I need today to finish the first version and make it available in the HS app store.
          **************

          Well i have a raspberry and are willing to give it a try.
          For your information the config.json is settelt at:
          /root/.homebridge/config.json
          The persist directory (to delete after modifying the config.json):
          /root/.homebridge/persist
          Homebridge start command:
          /etc/init.d/homebridge start
          Homebridge stop command:
          /etc/init.d/homebridge stop
          The homeseer directory (case sensitive):
          /usr/local/HomeSeer


          But i also have one question for you:
          What do you have to say in Dutch tot get a 'rolluik' up and down with WindowCovering?
          Because no matter what I yell to Siri(open, openen, dicht, op slot, naar beneje nondeju!), he just ignores me on a irritating manner :-(
          Everything else he accepted(lights etc.), tried with the Home app as well as the Eve app, but no luck sofar...
          I will sent you an PM with the location to the plugin
          Regards,

          Rien du Pre
          The Netherlands
          Using:
          Homeseer PRO latest HS4 BETA on a Raspberry
          Plugin's:
          RFXCOM, mcsMQTT, Z-Wave

          Comment


            Tried to test Windows. Sent a pm to you yesterday.


            Sent from my iPhone
            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


              HomeKit with Homeseer2 Thermometer/thermostat reading

              Guys,
              Quick question, I have a JSON api working on my homeseer2 server but can't figure out to change my homekit config so it reads value from a device. I'm controlling devices using http commands to HS2 just fine.
              But I'm trying to get it to read the value of my thermostat as a HttpThermometer.
              It works but it just shows 32F because I think it's reading null for a temp.
              When I navigate to the webpage on the link I get the value.
              This is what comes up-----> s5:73; s5 is the device ID and 73 is the value.
              I think I just need to change the "getCurrentTemperature: function (callback)" to match what HS2 is using.

              Here's what I'm using for the config file.

              "accessories": [
              {
              "accessory": "HttpThermometer",
              "name": "Garage",
              "url": "http://192.168.1.10/tenHsServer/tenHsServer.aspx?t=33&f=DeviceValue&d=s5",
              "http_method": "GET",
              "uuid_base":"Temperature Sensor"
              },



              Here's what I'm using for the accessory file.

              var Service = require("HAP-NodeJS").Service;
              var Characteristic = require("HAP-NodeJS").Characteristic;
              var request = require("request");

              module.exports = {
              accessory: ThermometerAccessory
              }

              function ThermometerAccessory(log, config) {
              this.log = log;

              // url info
              this.url = config["url"];
              this.http_method = config["http_method"];
              }


              ThermometerAccessory.prototype = {

              httpRequest: function(url, method, callback) {
              request({
              url: url,
              method: method
              },
              function (error, response, body) {
              callback(error, response, body)
              })
              },


              identify: function(callback) {
              this.log("Identify requested!");
              callback(); // success
              },

              getCurrentTemperature: function (callback) {
              var that = this;
              that.log ("getting CurrentTemperature");


              this.httpRequest(this.url, this.http_method, function(error, response, body) {
              if (error) {
              this.log('HTTP function failed: %s', error);
              callback(error);
              }
              else {
              this.log('HTTP function succeeded - %s', body);
              callback(null, Number(body));
              }
              }.bind(this));
              },

              getTemperatureUnits: function (callback) {
              var that = this;
              that.log ("getTemperature Units");
              // 1 = F and 0 = C
              callback (null, 0);
              },





              getServices: function() {

              // you can OPTIONALLY create an information service if you wish to override
              // the default values for things like serial number, model, etc.
              var informationService = new Service.AccessoryInformation();

              informationService
              .setCharacteristic(Characteristic.Manufacturer, "HTTP Manufacturer")
              .setCharacteristic(Characteristic.Model, "HTTP Thermometer")
              .setCharacteristic(Characteristic.SerialNumber, "HTTP Serial Number");

              var temperatureService = new Service.TemperatureSensor();

              temperatureService
              .getCharacteristic(Characteristic.CurrentTemperature)
              .on('get', this.getCurrentTemperature.bind(this));

              return [informationService, temperatureService];
              }
              };
              Attached Files
              Last edited by tommyd75; December 27, 2015, 03:29 PM. Reason: added photo

              Comment


                Originally posted by TomTom View Post
                Tried to test Windows. Sent a pm to you yesterday.


                Sent from my iPhone
                I didn't receive a PM from you
                Regards,

                Rien du Pre
                The Netherlands
                Using:
                Homeseer PRO latest HS4 BETA on a Raspberry
                Plugin's:
                RFXCOM, mcsMQTT, Z-Wave

                Comment


                  Originally posted by Rien du Pre View Post
                  I will sent you an PM with the location to the plugin
                  Didn't receive it either...

                  Comment


                    Originally posted by Child_Roman View Post
                    Didn't receive it either...
                    Something is wrong with PM system

                    Please sent me an email. Use HomeSeer<at>du-Pre<point>com
                    Regards,

                    Rien du Pre
                    The Netherlands
                    Using:
                    Homeseer PRO latest HS4 BETA on a Raspberry
                    Plugin's:
                    RFXCOM, mcsMQTT, Z-Wave

                    Comment


                      Hi stipus ,

                      is there a way to use other value's like i'm using jon00 milight led plugin and i use presets , like 1 is blue 2 is yellow 3 is random etc , is there a way to control them ? because homekit uses hue , and it works like the presets .
                      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


                        Hue is not really like presets, as there is a mathematical formula to convert from RGB to hue.

                        The Homeseer platform for HomeBridge uses the HomeSeer device value as a 16-bit RGB (standard HomeSeer color), and converts this value to a HomeKit hue using the formula.

                        You may be able to add a device value change event on your preset device, and set a virtual homeseer device to the RGB value of your preset.

                        Then in the Homeseer platform for HomeBridge, set the virtual HomeSeer device reference as the source for the lightbulb color.

                        Happy new year,
                        --
                        stipus

                        Comment


                          Originally posted by Rien du Pre View Post
                          Hi Guys,

                          As promised, I created a plugin which will use the 'farina' based homebridge as discussed in this topic.

                          The plugin will be an interface to the config.son file, but more other functionality will be added soon. Here are some screenshots to give you an idea of what it would look like.
                          I will ask a small price for this plugin, to cover the time I put into this and the support I have to give. I have several plugins hosted now and some are free and some are not. I think this is reasonable. I know Apple can shutdown the nfarina based homebridge, but I believe there will be always other workarounds, which can be used to keep the plugin working.
                          I am more the happy with the integration so far, for me it works 98% of the time.
                          Plugin is ready !!! Waiting for HS to put it in the App Store.

                          Still looking for a beta tester who's using Linux.
                          Regards,

                          Rien du Pre
                          The Netherlands
                          Using:
                          Homeseer PRO latest HS4 BETA on a Raspberry
                          Plugin's:
                          RFXCOM, mcsMQTT, Z-Wave

                          Comment


                            I have "No Password Required for Local/Same Network Login (Web Browser/HSTouch)" disabled so I have to enter a password for the web interface even on my homeseer machine.

                            This breaks the farina based system that did work for me.

                            Anyway to fix this?

                            Comment


                              Originally posted by Rien du Pre View Post
                              Hi Guys,

                              As promised, I created a plugin which will use the 'farina' based homebridge as discussed in this topic.

                              The plugin will be an interface to the config.son file, but more other functionality will be added soon. Here are some screenshots to give you an idea of what it would look like.
                              I will ask a small price for this plugin, to cover the time I put into this and the support I have to give. I have several plugins hosted now and some are free and some are not. I think this is reasonable. I know Apple can shutdown the nfarina based homebridge, but I believe there will be always other workarounds, which can be used to keep the plugin working.
                              I am more the happy with the integration so far, for me it works 98% of the time.
                              Plug-in is now in the HomeSeer 'app store' !!

                              Have fun with it.
                              Regards,

                              Rien du Pre
                              The Netherlands
                              Using:
                              Homeseer PRO latest HS4 BETA on a Raspberry
                              Plugin's:
                              RFXCOM, mcsMQTT, Z-Wave

                              Comment


                                Apple Homekit(Siri) integration with Homeseer

                                Nice!!

                                But i get a error downloading file

                                Edit: I spoke to soon

                                Comment

                                Working...
                                X