Announcement

Collapse
No announcement yet.

Siri integration

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

    #16
    Siri integration

    Genius. Doesn't look like you even need tenHserver for that, right?

    Comment


      #17
      Originally posted by jayman13 View Post
      Genius. Doesn't look like you even need tenHserver for that, right?
      No you don't need tenHserver, only drawback is that you have to create a script and an event for each device you want to check.
      I'm not going to have more than 10 devices I check on, so I'm ok with that.
      More or less just using it to check on the security and some other devices I monitor.
      Not using it to check the lighting status.

      Comment


        #18
        Siri integration

        Yeah, that's pretty cool. Not that using tenHserver is that big a deal. But this way you can check the thermostat status, security status, lock status, etc...without using a siriproxy plugin which I find are very buggy and tempermental...

        Comment


          #19
          On this line "page = HTTParty.get('http://10.10.10.10/alarmstatus.txt').body rescue nil", are you supposed to put the IP and the port. Such as 192.168.1.195:60?

          Comment


            #20
            Originally posted by tommyd75 View Post


            listen_for /what's the status of the alarm system/i do
            begin
            page = HTTParty.get('http://10.10.10.10/alarmstatus.txt').body rescue nil
            say page
            request_completed
            end
            end

            end sub
            This part is making siri crash when I ask the question. Maybe it's formatting. Is that "begin" supposed to be there? Sorry for my ignorance.

            Comment


              #21
              Yes, thats the IP of my Homeseer pc. My Siriproxy and the Homeseer are on the same local network, do that's the internal IP. If you're using a port then you need to include that.
              Just remove that end sub, I think that was copied from the homeseer script. It doesnt belong in the SiriProxy file. The code below is what you would paste into the SiriProxy .rb file.
              I have just added it and other commands into the example.rb file that SiriProxy includes.

              listen_for /what's the status of the alarm system/i do
              begin
              page = HTTParty.get('http://10.10.10.10:81/alarmstatus.txt').body rescue nil
              say page
              request_completed
              end
              end

              Comment


                #22
                Siri integration

                Yeah, that sub wasn't really in my .rb file. Just a mistake when I posted. Just not working for me and siri proxy crashes when I say the exact words. Thanks anyway though. Perhaps it's because we have different setups? I got mine running on a raspberry pi. I had it install httparty thinking that was it but still no luck.

                Comment


                  #23
                  I just remembered that I also added these two lines to the very top of the ruby file.


                  require 'httparty'
                  require 'json'


                  Try adding that and then doing the update. I don't think I'm using the json part, but I had left it in there from when I was trying to get this to work. I did install httparty. I was afraid to change anything, since it all works now.

                  P.S. I just noticed you're from Chicago, lol..me too!

                  Comment


                    #24
                    Siri integration

                    Thanks. I installed httparty and put the require 'httparty' at the top of the plugin file. However, it's almost like I didn't install it because when I run siriproxy there is an error to the effect of httparty not being installed. Any idea in how to get httparty incorporated into siriproxy? It looks like it isn't a "gem" like cfproperty, etc...

                    Comment


                      #25
                      Siri integration

                      Don't know how this worked but I put httparty in the siriproxy-example.rb gemspec file and it is working! Thanks for your help!

                      Comment


                        #26
                        That's where all my code is, I never bothered to make a new .rb file, I just kept adding to the example.rb.
                        Someday I'll clean it all up, but I don't really care as long as it works.

                        There must be something that points to that maybe?
                        The only other plugin I use is the thermostat plugin.
                        Glad to see I was able to help someone, seemed like I was never going to get it to work.
                        Have fun with it.

                        Comment


                          #27
                          Siri integration

                          Out of curiosity, what do you use to run your script which changed the alarmstatus.txt file? I'm using the ademco plugin. I guess I could have it run each time the string changed but that would mean a separate event for armed, disarmed, etc. Is that what you do and do separate events for each one?

                          Comment


                            #28
                            I just use an event to run the script.
                            I have three events (stay,away, disarm) for the alarm status but they update the same text file using the same script.

                            Comment


                              #29
                              Originally posted by mark_anderson_us View Post
                              Hi Guys

                              Siri Integration is working

                              Full instructions and working downloads here (if you don't want to install from scratch yourself):

                              http://www.hometoys.com/emagazine/2013/02/siri-home-automation-integration-from-start-to-finish-brpart-1--the-basics-using-a-linux-vm/2087

                              Enjoy

                              Mark

                              Decided to try this method first -- versus the other image/plugin that is being actively developed. I'm at the point where test communications are working and I can get an event to trigger using the TriggerEvent script.

                              What I'm having trouble figuring out from the instructions is where I place the 'listen_for' commands. The yml seems to point to an example plugin in a sub directory. I see references to a .rb file but didn't see anything like that last night. granted .. it was late.


                              Edit -- Think I found the .rb under the plugin lib directory. Will try tonight.
                              Thanks,
                              -sphiend
                              Last edited by sphiend; May 28, 2013, 10:29 AM.

                              Comment


                                #30
                                I know this thread is several years old...can someone update - is anyone using Siri to control HS?

                                Ian
                                Plugins:
                                BLLogMonitor, BLGarbage, BLBackup, BLOutGoingCalls, BLUps, BLRfid, JvEss, DooMotion, Applied Digital Ocelot, AC RF Processor, UltraMon, PJC AVR 430, UPB, Rain8net, DSC Panel, JRiver Media center, Windows Media Player, SageMediaCenter, SnevlCID, MCSTemperature.

                                Comment

                                Working...
                                X