Page 4 of 4

Re: Scheduler

Posted: Wed Jan 23, 2013 11:32 pm
by flopp
after a restart of EG, all my item in schedule are gone, anyone knows why.

if i open the action and press OK, i will appear in the plugin, but after a restart it gone again.

same for my other plugin, suntracker.

Re: Scheduler

Posted: Fri Jan 25, 2013 2:58 pm
by FourFootPaul
Does the synchronization Y/N tickbox work for people?

It seems that no matter what I do with this tickbox, scheduler always attempts to synchronize devices. In my particular instance if someone manually turns the device on, I want scheduler to leave it turned on until it comes round to the scheduled off time again.

Re: Scheduler

Posted: Sat Jan 26, 2013 10:27 am
by krambriw
That is strange, it works as expected for me when I try it here (set to synch every 6th minute during test). When checked, it is synching fine, when unchecked, only one synch at restart (as expected). Are you using the latest? It is in the thread on the previous page.

Best R, Walter

Re: Scheduler

Posted: Thu Apr 17, 2014 8:45 am
by krambriw
New version published in the first post
- Added new day types, 'vacation' and 'empty house', and new vacation and empty house modes
- Vacation and Empty House modes can be set from external and is saved persistent (keeps state after EG restart)
- Commented out a number of print statements (info can be found in the log files)
- Added routine to restore device states after EG restart
- Synchronization is deactivated during vacation and empty house modes
The vacation and empty house modes are useful when you need to have different behavior of your home automation when you have vacation or if you are away from your house (like a holiday stay elsewhere). To activate the different modes you can use python scripts that you can can trigger with suitable events. The python syntax looks like in the following example:

Code: Select all

#To set/unset vacation mode
eg.plugins.Scheduler.plugin.vacation_m = True
eg.plugins.Scheduler.plugin.vacation_m = False

Code: Select all

#To set/unset empty house mode
eg.plugins.Scheduler.plugin.emptyHouse_m = True
eg.plugins.Scheduler.plugin.emptyHouse_m = False
When set to vacation or empty house mode, the special day and time settings will be used instead of the normal Monday to Sunday settings


To upgrade, it is very important to follow the steps described in the first post.

Re: Scheduler

Posted: Fri Apr 18, 2014 4:42 am
by kkl
Walter,

I think I can speak for others when I say that your contributions to the EG community are greatly appreciated.

Kerry

Re: Scheduler

Posted: Fri Apr 03, 2015 9:48 pm
by Sulliv@n
Everytime I start EG it's automatically synchronizing my many different schedules. Is it possible to turn this off?

The problem is that everytime I reboot my computer, all devices in my house change states. The blinds, tv, lamps etc. My wife goes crazy :)

Re: Scheduler

Posted: Sat Apr 04, 2015 9:02 am
by krambriw
The target for the Scheduler plugin was automation and it is not expected that the computer needs frequent rebooting, a dedicated pc for automation is recommended. As such I did think it is important that states of devices are recovered, let's say after power failure. Therefore they are being synchronized at startup to the correct state according to schedules (when you restart EG or the plugin). I assume it is this initial sync you are referring to? The other synchronization that is happening regularly during run-time, you can turn off by unchecking the checkboxes in the actions.

However, we do not wan't that you run into family problems so here is a fix you can do yourself:

1) Open the plugin source __init__.py in a text editor (Like Notepad, UltraEdit,,,do not use Wordpad or Word)

2) Find the following section starting in line 352 if you are using my latest version

Code: Select all

            #Restore device states at startup and during synch
            if ( 
                init == 1
                or iSynch == self.iSynchInterval
            ):
3) Change to

Code: Select all

            #Restore device states at startup and during synch
            if ( 
                iSynch == self.iSynchInterval
            ):
4) Save changes, restart EG, hopefully it will work

Re: Scheduler

Posted: Sun Apr 05, 2015 8:47 pm
by Sulliv@n
It worked like a charm. :) Thanx!