more G-Labs products

Author Topic: Home/Away/Night/Vacation modes  (Read 1554 times)

February 12, 2015, 04:02:00 PM
Read 1554 times

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
Is there a way to have different modes which would enable different schedules/behaviors?  I want an easy way to enable all schedule for automatic control of lights.  But when I am home, I don't want these to run.  When we are sleeping activate the motion sensor but not the lights.

I found simple home/away app, but it just turns things off/on on arrival/departure:
http://www.homegenie.it/forum/index.php?topic=447.msg2511#msg2511

February 12, 2015, 04:18:37 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
There is currently nothing like this, but it is a good idea.  You could use the alarm system code to do some of this, but not scheduled events directly.

If you wanted to make some code, it would be a nice inclusion into HG.  If not, then it would definitely be a good feature request.  I don't know how high on Gene's list it would go, so you would probably be better off putting something together yourself as a start if nothing else.

June 21, 2015, 10:20:19 PM
Reply #2

amji71

  • *
  • Information
  • Newbie
  • Posts: 10
while (Program.IsEnabled)
{
 
     Pause(1);
 
     var isarmed = (Program.WithName("Security Alarm System").Parameter("HomeGenie.SecurityArmed").Value == "1");
     //
     if (!isarmed)
    {
         Pause(2);
         Net.WebService("http://x.0.0.x/api/HomeAutomation.HomeGenie/Automation/Programs.Enable/1000").GetData();
            
    }
   else
    {
         Pause(2);
         Net.WebService("http://x.0.0.x/api/HomeAutomation.HomeGenie/Automation/Programs.Disable/1000").GetData();
   
    }

}

so while security system is armed (you are away), you can turn off the automation programs you do not wish to run, but turn them back on when you are back and security is disarmed.  x.0.0.x is the ip address of your machine.  1000 is the number of the program you want enabled or disabled. 

June 22, 2015, 06:15:05 AM
Reply #3

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
You can use also, the schedule  Time Table, to turn Off/On some lights, Open/Close Shutters with the calendar where you can define holiday days.

June 22, 2015, 12:42:14 PM
Reply #4

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
Thanks for the replies, I think there is another mode that I really use though.  Its not all security on or security off.  I might want security on while we are sleeping, but not have the lights automatically turning on.  When on vacation I want security armed and lights toggling.