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

    Run a HomeGenie macro(script, scene)

    Scheduled Pinned Locked Moved Raspberry Pi
    homegeniealexagoogle assistanraspberry pi
    1 Posts 1 Posters 1.0k Views
    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.
    • tuicemenT Offline
      tuicemen
      last edited by

      HomeGenie HG is capable of creating Macros(Scenes) which are then saved as programs via a macro wizard(point and click). As well you can create programs inside HG using different coding languages (c#, javascript &python). When you save a Macro or coded program HG assigns it a Program Number It is with this number that you can run it via the API and a curl call. As I did here https://www.triggercmd.com/forum/topic/1970/alexa-google-panic-alarm
      This adds a whole new array of things TRIGGERcmd can do with just one Alexa or Google call.
      The Command you'd use is simply

      curl http://ADDRESS/api/HomeAutomation.HomeGenie.Automation/Programs.Run/NUM
      

      Simply change the ADDRESS to your HG IP & Port and change NUM to the HG program number you wish to run.

      I just tested this creating a simple macro using the record macro function (bottom right under actions) in HG.
      This turned a light on then of then armed my security system then turned another different light on then of to indicate the security system was armed. Every thing was triggered!

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post