Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Scheduler

Questions and comments specific to a particular plugin should go here.
flopp
Posts: 17
Joined: Mon Dec 24, 2012 8:00 am

Re: Scheduler

Post 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.
FourFootPaul
Posts: 10
Joined: Fri Jun 15, 2012 12:05 pm

Re: Scheduler

Post 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.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Scheduler

Post 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
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Scheduler

Post 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.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Scheduler

Post by kkl »

Walter,

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

Kerry
Sulliv@n
Posts: 12
Joined: Fri Apr 03, 2015 9:37 pm

Re: Scheduler

Post 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 :)
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Scheduler

Post 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
Sulliv@n
Posts: 12
Joined: Fri Apr 03, 2015 9:37 pm

Re: Scheduler

Post by Sulliv@n »

It worked like a charm. :) Thanx!
Post Reply