Announcement

Collapse
No announcement yet.

control homeseer with http commands

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    control homeseer with http commands

    Hello,

    I would like to know if it is possible to control Homeseer via http commands.

    I would like to use Homeseer with Irule software using http command strings

    http://www.iruleathome.com/tutorials/http-gateway.html

    thanks

    #2
    Yes, you can. I can't provide the details but I use http to send commands from my security system and video surveillance system to trigger different events.

    Comment


      #3
      http://www.homeseer.com/support/homeseer/WebHelp2/tipstricks/tipstricks_controlling_homeseer_using_asp_pages.htm

      I send a command via HTTP to scripts located in the /html directory. Here is one of the simple ones to just toggle virtual devices for status of the relays on my alarm system.

      Code:
      <%
      dim msg
      msg = Request.QueryString("Message")
      eventmsg = Request.QueryString("event")
      
      If StrComp(eventmsg, "alarm") = 0 Then
           If StrComp(msg, "on") = 0 Then
      	hs.SetDeviceStatus "I1", 2
           ElseIf StrComp(msg, "off") = 0 Then
      	hs.SetDeviceStatus "I1", 3
           End If
      ElseIf StrComp(eventmsg, "arm") = 0 Then
           If StrComp(msg, "away") = 0 Then
      	hs.SetDeviceStatus "I2", 2
      	hs.SetDeviceStatus "I3", 3
      	hs.SetDeviceStatus "I10", 3
           ElseIf StrComp(msg, "stay") = 0 Then
      	hs.SetDeviceStatus "I4", 2
      	hs.SetDeviceStatus "I3", 3
      	hs.SetDeviceStatus "I10", 3
           ElseIf StrComp(msg, "disarmed") = 0 Then
      	hs.SetDeviceStatus "I2", 3
      	hs.SetDeviceStatus "I4", 3
      	hs.SetDeviceStatus "I10", 2
           End If
      ElseIf StrComp(eventmsg, "entry") = 0 Then
           If StrComp(msg, "on") = 0 Then
      	hs.SetDeviceStatus "I3", 2
           ElseIf StrComp(msg, "off") = 0 Then
      	hs.SetDeviceStatus "I3", 3
           End If
      End If
      
      hs.writelog "AXIS:",msg
      hs.writelog "AXIS:",eventmsg
      hs.SetDeviceStatus "V99", 2
      
      %>

      Comment


        #4
        Look at:

        http://www.tenholder.net/tenWare2/te...r/default.aspx

        It is a web page that runs on the HomeSeer server and allows you to interact with HS via the URL contents.

        tenholde
        tenholde

        Comment


          #5
          This thread is somewhat old. What is the preferred way these days for controlling HomeSeer using HTTP commands? I'm hoping that HTTP commands might be a robust way for getting data into HomeSeer and/or trigger events in HomeSeer.

          I'm pretty sure MiCasaVerde is completely controllable with HTTP commands, as are other devices. There seems to be a trend toward using HTTP for this purpose. Does HomeSeer support HTTP in this way natively, or does it depend on a plug-in to do it? Is it how HSTouch works? I'm not sure where to start or even where look.
          Last edited by NeverDie; October 25, 2013, 11:31 PM.

          Comment


            #6
            I've selected to go with TenHSserver listed above. My reasoning is that it's already compatible with HS3 as others may not be. I use this method to control some of my lights with my watch. Yep, my watch
            See this thread for more info: http://forums.homeseer.com/showthrea...ghlight=pebble

            Comment


              #7
              I'm not sure, but this looks like a similar way to do it? http://board.homeseer.com/showthread...t=http+command

              Comment


                #8
                You could try my JSONApi which takes commands via URL queries and returns a response in JSON. It's just a simple asp file which is installed in your html directory.

                Because it returns an JSON object it's very easy to parse the return values.

                https://github.com/manxam/homeseer-jsonapi

                Comment


                  #9
                  bernieb - You mention that TenHsServer is compatible with HS3. Is that correct? It is not working for me and I could not find anything in the forums suggesting that it does work in HS3.

                  Comment


                    #10
                    Originally posted by galoobus View Post
                    bernieb - You mention that TenHsServer is compatible with HS3. Is that correct? It is not working for me and I could not find anything in the forums suggesting that it does work in HS3.
                    I have not tested tenHsServer on HS3. Will require changes, but should not be significant.

                    If there is interest, I will look at it in a few days.

                    tenholde
                    tenholde

                    Comment


                      #11
                      I'm interested!
                      I use it in HS2 for 2 way communication with a Philips Pronto remote and it's one of the last hurdles for me to switch to HS3.

                      Chiel.

                      Comment


                        #12
                        Originally posted by Chiel View Post
                        I'm interested!
                        I use it in HS2 for 2 way communication with a Philips Pronto remote and it's one of the last hurdles for me to switch to HS3.

                        Chiel.
                        OK, I'll look at it.

                        tenholde
                        tenholde

                        Comment


                          #13
                          I currently use it with HS2 to control lights with my pebble watch and as soon as I receive my Ubi, I'll be able to do voice commands as well. I would really hate to loose this function with HS3. So thanks for taking a look at it for us.

                          Comment


                            #14
                            The following for HS3 works well for me; See what you think.

                            http://board.homeseer.com/showthread.php?t=163217
                            Don

                            Comment


                              #15
                              Re: control homeseer with http commands

                              Originally posted by tenholde View Post
                              I have not tested tenHsServer on HS3. Will require changes, but should not be significant.

                              If there is interest, I will look at it in a few days.

                              tenholde
                              Hi, I would like to use it in hs3 as well. Tnx

                              Verstuurd vanaf mijn Nexus 7 met Tapatalk

                              Comment

                              Working...
                              X