[/quote]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
To upgrade, it is very important to follow the steps below in the specified order.
1) When EG is running current version, disable the Scheduler plugin and all Scheduler actions so that they all stops
- save and exit EG
2) Replace the current plugin files with the new files in the zip
- start EG again
3) Now configure the Scheduler plugin. When finished, click ok, then enable the plugin so that it starts.
4) Now for each action, configure each of them by opening them and clicking ok
5) Enable each of the actions
6) Open the settings for the plugin again and check that they are all running
- save the configuration
7) You are done!
General description
I have made, I hope, a useful little plugin if you need a scheduler.
First of all, all credits to Bartman, I have based it on code and structure from his Timer plugin.
With this plugin, You could for instance feed your fishes in the pond automatically (provided you have the machine for that purpose) or control automatically the motor heater of your car.
If you use radio controlled outlet switches, you could start to save all that standby energi your stuff is consuming today. Fantasy is free....
Some words about the settings as seen in the picture below:
The first 3 fields for scheduler and event names are rather obvious.
For each daytype you have 3 on and 3 off time settings. Write them in format "hhmm" like 1830. There are some error controls built in but if its 100% failsafe is left to be seen.
Then there are public holidays. You have fixed ones and you have variable ones (that changes every year). So this you need to maintain yearly.
The logic in handling of holidays is as follows
- if today is a normal weekday and tomorrow is a holiday, use time settings for Friday
- if today and tomorrow are holidays, use time settings for Saturday
- if today is a holiday and tomorrow normal weekday, use time settings for Sunday
Some devices, especially radio controlled (rf), needs sometimes the command to be repeated to be sure the on or off has been executed. The setting for this is called bursts, here you define how many "copies" of the event you like to create when turning on or off.
Some transmission devices also need a short delay between the transmissions. So there is also a setting for that.
Finally, you can decide if you like to have an entry printed in the log window for each loop execution.
Talking about log, in a separate directory, "Log", you find a logfile in html-format holding the on off actions.
To make things happen, just do as normal, finalize your settings, create an event with the same name in any macro together with actions.
Best regards, Walter