From d2e71e2c1ffdbdfa885dd48b8793efa74f52f695 Mon Sep 17 00:00:00 2001
From: dietmar63 <>
Date: Thu, 10 Oct 2013 21:38:56 +0000
Subject: [PATCH] new Module
git-svn-id: https://svn.fhem.de/fhem/trunk@4031 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/98_WeekdayTimer.pm | 177 +++++++++++++++++++++++++++++++++++
1 file changed, 177 insertions(+)
create mode 100644 fhem/FHEM/98_WeekdayTimer.pm
diff --git a/fhem/FHEM/98_WeekdayTimer.pm b/fhem/FHEM/98_WeekdayTimer.pm
new file mode 100644
index 000000000..84e6d8cc0
--- /dev/null
+++ b/fhem/FHEM/98_WeekdayTimer.pm
@@ -0,0 +1,177 @@
+# $Id$
+##############################################################################
+#
+# 98_WeekdayTimer.pm
+# written by Dietmar Ortmann
+#
+# This file is part of fhem.
+#
+# Fhem is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# Fhem is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with fhem. If not, see
define <name> weekdayTimer <device> <profile> <command>|<condition>
+ set <device> <para>
+ The following parameter are defined: +
+
+
+
+ Example: +
define shutter WeekdayTimer bath 12345|05:20|up 12345|20:30|down
+
+ define heatingBath WeekdayTimer bath 07:00|16 Mo,Tu,Th-Fr|16:00|18.5 20:00|eco
+ {fhem("set dummy on"); fhem("set @ desired-temp %");}
+ At the given times and weekdays only(!) the command will be executed.
+
+ define dimmer WeekdayTimer livingRoom Sa-Su,We|07:00|dim30% Sa-Su,We|21:00|dim90% (ReadingsVal("WeAreThere", "state", "no") eq "yes")
+ The dimmer is only set to dimXX% if the dummy variable WeAreThere is "yes"(not a real live example).
+