HomeGenie Forum

Automation Program Plugins and Wizard Scripting => Help => Topic started by: kevin1 on May 06, 2015, 02:26:15 PM

Title: macro, add button/switch widget
Post by: kevin1 on May 06, 2015, 02:26:15 PM
So in the 'group lights on' C# example, there is this command in trigger code:

  Program.AddControlWidget("homegenie/generic/program");

I think this creates a widget in my dashboard which has an indicator that it is active, kind of like a switch.

Is there an equivalent command for macros?  Just played with macro for first time and thought this might give a nice switch to enable "away mode".  So when I press this "away mode" switch, the recorded macro would enable light control schedule, and arm the alarm system.  Or maybe I should just figure out how to do it all with C#, but thought the macro might be nice for this.

Thoughts? :)
Title: Re: macro, add button/switch widget
Post by: bkenobi on May 06, 2015, 08:39:11 PM
You can add macros to your dashboard.  The default icon should be able to be changed to something you like better.