From 4057ef20e39ad8a610785ced79cf73e5e107a22e Mon Sep 17 00:00:00 2001 From: dietmar63 <> Date: Thu, 8 Aug 2013 18:45:37 +0000 Subject: [PATCH] some improovements in writing the state, to avoid irritations git-svn-id: https://svn.fhem.de/fhem/trunk@3627 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_RandomTimer.pm | 41 ++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/fhem/FHEM/98_RandomTimer.pm b/fhem/FHEM/98_RandomTimer.pm index e086d02e1..bfde50042 100644 --- a/fhem/FHEM/98_RandomTimer.pm +++ b/fhem/FHEM/98_RandomTimer.pm @@ -80,17 +80,16 @@ sub RandomTimer_Define($$) get_switchmode($hash); - $hash->{NAME} = $name; - $hash->{TIMESPEC} = $timespec_start; - $hash->{TSPEC} = $tspec; - $hash->{DEVICE} = $device; - $hash->{STOPTIME} = $timespec_stop; - $hash->{TIMETOSWITCH} = $timeToSwitch; - $hash->{REP} = $rep; - $hash->{S_REP} = $srep; - $hash->{REL} = $rel; - $hash->{S_REL} = $srel; - $hash->{COMMAND} = "off"; + $hash->{NAME} = $name; + $hash->{DEVICE} = $device; + $hash->{TIMESPEC_START} = $timespec_start; + $hash->{TIMESPEC_STOP} = $timespec_stop; + $hash->{TIMETOSWITCH} = $timeToSwitch; + $hash->{REP} = $rep; + $hash->{REL} = $rel; + $hash->{S_REP} = $srep; + $hash->{S_REL} = $srel; + $hash->{COMMAND} = "off"; delete $hash->{STARTTIME}; delete $hash->{ABSCHALTZEIT}; @@ -106,7 +105,12 @@ sub RandomTimer_Define($$) sub RandomTimer_ExecRepeater($) { my ($hash) = @_; - my $tspec = $hash->{TSPEC}; + my $timespec_start = $hash->{TIMESPEC_START}; + + return "Wrong timespec_start <$timespec_start>, use \"[+][*]