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/NUMSimply 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!
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