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

    Run a HomeGenie macro(script, scene)

    Raspberry Pi
    homegenie alexa google assistan raspberry pi
    1
    1
    351
    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
      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
      • First post
        Last post