more G-Labs products

Author Topic: macro, add button/switch widget  (Read 1029 times)

May 06, 2015, 02:26:15 PM
Read 1029 times

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
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? :)

May 06, 2015, 08:39:11 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
You can add macros to your dashboard.  The default icon should be able to be changed to something you like better.