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.
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.
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
-
FourFootPaul
- Posts: 10
- Joined: Fri Jun 15, 2012 12:05 pm
Re: Scheduler
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.
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
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
Best R, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler
New version published in the first post
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.
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:- 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
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
To upgrade, it is very important to follow the steps described in the first post.
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
Walter,
I think I can speak for others when I say that your contributions to the EG community are greatly appreciated.
Kerry
I think I can speak for others when I say that your contributions to the EG community are greatly appreciated.
Kerry
Re: Scheduler
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
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
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
3) Change to
4) Save changes, restart EG, hopefully it will work
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
):
Code: Select all
#Restore device states at startup and during synch
if (
iSynch == self.iSynchInterval
):
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
It worked like a charm.
Thanx!