TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Trigger an Alexa or SmartThings device?

    General Discussion
    2
    2
    165
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TomberWolf
      last edited by

      Dear community,

      I'm completely new with TRIGGERcmd, so please excuse if this was asked before, I wasn't able to find something about that.

      I want TRIGGERcmd to trigger an Alexa device or a SmartThings (virtual)device to be able to switch off a smart plug after the PC was shutted down.

      Is this possible?

      Stay healthy and best regards

      Tom

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @TomberWolf
        last edited by

        @TomberWolf, good question. You can have TRIGGERcmd run a "curl" command that calls the IFTTT Webhooks API to run an applet that turns your SmartThings switch on.

        You'll need your IFTTT webhooks key, which you can get at this page:
        https://ifttt.com/maker_webhooks/settings

        You'll see a URL like this: https://maker.ifttt.com/use/asdfasdfblahblah

        The bold part of that URL is your webhooks key.

        Setup a TRIGGERcmd command like this, where front_light is your Webhook applet's Event Name.

        curl https://maker.ifttt.com/trigger/front_light/with/key/asdfasdfblahblah
        

        When you make your applet, search for Webhooks as your This part.

        85f37092-5ae6-47a6-b3eb-b2f75ff0e684-image.png

        e0c34fde-96a7-45ce-960d-170a17cd0ba1-image.png

        If you use Windows, you can download curl from here.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • First post
          Last post