Announcement

Collapse
No announcement yet.

Siri Integration using Shortcts & IFTTT

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

  • Siri Integration using Shortcts & IFTTT

    Using IOS 12 shortcuts and the Homeseer IFTTT channel you can use Siri to run events. I've set it up and it works great. Excellent instructions are at this link (although Sonos is used as the example ( https://www.macstories.net/ios/how-to-trigger-ifttt-applets-with-ios-12s-new-shortcuts-app-and-siri/ ). You will also need to install the Apple Shortcuts app from the App Store since it in not a default app with IOS 12.

  • #2
    I would suggest to eliminate IFTTT. Apple Shortcuts can talk bidirectionally to HS directly.
    HomeSeer 2, HomeSeer 3, Allonis myServer, Amazon Alexa Dots, ELK M1G, ISY 994i, HomeKit, BlueIris, and 6 "4k" Cameras using NVR, and integration between all of these systems. Home Automation since 1980.

    Comment


    • #3
      Originally posted by Krumpy View Post
      I would suggest to eliminate IFTTT. Apple Shortcuts can talk bidirectionally to HS directly.
      Krumpy, could you provide some more details on how to use Apple shortcuts to talk to HS directly. Thanks

      Comment


      • #4
        Same here. Give us an example. Are you using http commands?

        Comment


        • #5
          I would also like to know how. I haven't been able to get homebridge to work reliably so maybe this is another way.

          Comment


          • #6
            I was able to get it to work with json http commands. But it’s spotty with the apple watch. There’s gotta be a better way.

            Comment


            • #7
              Originally posted by jayman13 View Post
              I was able to get it to work with json http commands. But it’s spotty with the apple watch. There’s gotta be a better way.
              As an alternative, I've written a plugin (named homebridge-homeseer-plugin-2018) for the Homebridge bridge software which allows you to interface between the Apple/iPhone ecosystem and many types of HomeSeer devices. Its all free, but takes some setting up. More information is here: https://www.npmjs.com/package/homebr...er-plugin-2018 and here: https://github.com/jvmahon/homebridge-homeseer/wiki

              You need either a Windows computer or a Raspberry Pi to run the bridge software. My preference (both from ease of setup and performance) is to run HomeBridge and the HomeSeer plugin from the same Windows computer that I use to run Homeseer. The Homebridge software can also be run on a Raspberry Pi, but I find that Linux file permission settings to be a frequent cause of installation problems among users of the software. Post to the issues forum on github if you have questions.

              Comment


              • #8
                I appreciate the work you did on that and I did use it in the past. But what was frustrating to me is that, inexplicably for no apparent reason at all, all my devices would disappear from “my home” and I’d have to put them back in “rooms” etc. I don’t know if others had this experience but it was driving me crazy.

                Comment


                • #9
                  jayman13 - Weird - I've never heard of that problem with any of the current versions (I'm running it with about 100 devices and don't recall that problem in any version) EXCEPT if someone deleted the Homebridge database. If you ever want to try it again, I'd be happy to try and help you fix whatever issue you are having -- if so, just let me know by an issue posting on the github site. Maybe a config.json setting problem or something that might be obvious to me, but not to others.

                  Comment


                  • #10
                    Originally posted by jvm View Post
                    jayman13 - Weird - I've never heard of that problem with any of the current versions (I'm running it with about 100 devices and don't recall that problem in any version) EXCEPT if someone deleted the Homebridge database. If you ever want to try it again, I'd be happy to try and help you fix whatever issue you are having -- if so, just let me know by an issue posting on the github site. Maybe a config.json setting problem or something that might be obvious to me, but not to others.
                    I’ll try and start from scratch from a windows machine using your links. I had been using a rasberry pi ans maybe that was the problem. Thanks.

                    Comment


                    • #11
                      Shortcuts can open HTTP pages, and therefore you can use the JSON HTTP functionality to control devices and trigger events.

                      First, you'll need either the device ID or the event ID that you want to control/trigger. For devices, go to the Advanced tab of the device and get the Reference ID. For events, it's a little more complicated. Go to this URL: http://<IP of HS3>/JSON?request=getevents

                      That will barf out a bunch of JSON with the event details, like this: {"Group":"Lights","Name":"Porch Lights On","id":5,"voice_command":"","voice_command_enabled":fals e} - all strung one after the other in a big mess. Find the event you want to trigger, and grab the "id" value after the name - in this case, 5.

                      Now, you can control a device by going to these URLs:

                      (Note: You can use the local IP address of your Homeseer instance below *OR* you can access it through MyHS with the following syntax:

                      https://connected2.homeseer.com/JSON?user=<account email address>&pass=<your password>&request....)



                      Control a device by value (light brightness percentage, thermostat temperature, etc) http://<IP address of HS3>/JSON?request=controldevicebyvalue&ref=<device ID>&value=<value>

                      Control a device by "label" - on, off: http://<IP address of HS3>/JSON?request=controldevicebylabel&ref=<device id>&label=On


                      You can trigger an event by going to: http://<IP address of HS3>/JSON?request=runevent&id=<event ID>


                      (All these are documented at https://homeseer.com/support/homesee..._with_json.htm)


                      Now that you have the URL, you're ready to make the shortcut.

                      Create a new shortcut. For the first action, scroll down to WEB and choose URL. Enter the URL from above.

                      For the second action, choose "Get Contents of Web Page" under Safari.

                      For the third action, pick "Exit Shortcut" under Scripting.

                      Save the shortcut.

                      Now that you have the shortcut created, tap on it. The requested action should take place.

                      Optionally, tap the three dots on the top right of the shortcut to enter its properties, then tap the "on/off switch" icon (right below "done"). From there, you can add it to Siri and record a phrase, choose to add it to the Shortcut Widget, and add to your home screen.


                      That should get you going. I have Amazon Echos and do my voice control through that - but I use shortcuts for things that I don't want to speak out loud - like turning off all the lights and locking the doors while I am in bed and the wife is asleep, or when I am in a noisy room. It's very handy to have them in the Shortcut Widgets screen.



                      Comment


                      • #12
                        Joe T

                        Thanks for the instructions. I have a few questions. I was able to get it to work however I don't see "Exit Shortcut" under scripting. Tapping the icon manually device changes almost instantly, however with Siri there is delay. Sometimes it can be just 1-2 seconds and sometimes longer. Also it appears for Siri to work the iPad has to be unlocked. Is this normal?

                        Comment


                        • #13
                          Originally posted by JoeT View Post


                          That should get you going. I have Amazon Echos and do my voice control through that - but I use shortcuts for things that I don't want to speak out loud - like turning off all the lights and locking the doors while I am in bed and the wife is asleep, or when I am in a noisy room. It's very handy to have them in the Shortcut Widgets screen.
                          Thanks for that. Very helpful for shortcuts. I just hope apple implements it a little better as on the apple watch it can be pretty annoying...

                          Comment


                          • #14
                            Here’s the Exit Shortcut entry at the bottom. Try searching for it.

                            I havent tried them with Siri yet since I use Alexa, but I will give it a try.
                            Attached Files

                            Comment


                            • #15
                              Try the get contents of url as opposed to web page you’ll be able to get the ok response from the JSON request and Siri will then acknowledge that receipt.

                              Comment

                              Working...
                              X