Run a HomeGenie macro(script, scene)
-
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 simplycurl 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!