HomeGenie Forum

General Category => General Discussion => Topic started by: kevin1 on February 12, 2015, 04:02:00 PM

Title: Home/Away/Night/Vacation modes
Post by: kevin1 on February 12, 2015, 04:02:00 PM
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 (http://www.homegenie.it/forum/index.php?topic=447.msg2511#msg2511)
Title: Re: Home/Away/Night/Vacation modes
Post by: bkenobi on February 12, 2015, 04:18:37 PM
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.
Title: Re: Home/Away/Night/Vacation modes
Post by: amji71 on June 21, 2015, 10:20:19 PM
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. 
Title: Re: Home/Away/Night/Vacation modes
Post by: dani on June 22, 2015, 06:15:05 AM
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.
Title: Re: Home/Away/Night/Vacation modes
Post by: kevin1 on June 22, 2015, 12:42:14 PM
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.