2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

98_Heating_Control: Bugfix bei Angabe von Mo,Die,....So

git-svn-id: https://svn.fhem.de/fhem/trunk@2608 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tobiasfaust 2013-01-30 18:51:06 +00:00
parent 27a4083624
commit 9d30af0cce

View File

@ -1,3 +1,4 @@
# $Id$
##############################################################################
#
@ -129,8 +130,8 @@ Heating_Control_Define($$)
}
# nur noch die Einzelteile per regExp testen
return "invalid daylist in $name <$daylist> 123... | Sa,So,..."
if(!($daylist =~ m/^(\d){0,7}$/g || $daylist =~ m/^((Sa|So|Mo|Di|Mi|Do|Fr)(,|$)){0,7}$/g ));
return "invalid daylist in $name <$daylist> - please use 123... | Sa,So,..."
if(!($daylist =~ m/^(\d){1,7}$/g || $daylist =~ m/^((sa|so|mo|di|mi|do|fr)(,|$)){1,7}$/g ));
# Sa, So ... in den Index übersetzen
my $idx = 1;
@ -267,7 +268,7 @@ Heating_Control_Update($)
readingsBeginUpdate($hash);
readingsBulkUpdate($hash, "nextUpdate", strftime("%d.%m.%Y %H:%M:%S",localtime($nextSwitch)));
readingsBulkUpdate($hash, "nextValue", $nextDesTemperature . "°C");
readingsBulkUpdate($hash, "state", strftime("%d.%m.%Y %H:%M:%S",localtime($nextSwitch)). ": " . $newDesTemperature."°C");
readingsBulkUpdate($hash, "state", strftime("%d.%m.%Y %H:%M:%S",localtime($nextSwitch)). ": " . $nextDesTemperature."°C");
readingsEndUpdate($hash, defined($hash->{LOCAL} ? 0 : 1));
return 1;