mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
95_YAAHM.pm: Bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@17359 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
556d2e7e12
commit
11fd76043a
@ -47,7 +47,7 @@ my $yaahmname;
|
||||
my $yaahmlinkname = "Profile"; # link text
|
||||
my $yaahmhiddenroom = "ProfileRoom"; # hidden room
|
||||
my $yaahmpublicroom = "Unsorted"; # public room
|
||||
my $yaahmversion = "2.0";
|
||||
my $yaahmversion = "2.01";
|
||||
my $firstcall = 1;
|
||||
|
||||
my %yaahm_transtable_EN = (
|
||||
@ -1128,7 +1128,6 @@ sub YAAHM_time {
|
||||
my $mval = $dailytable{"morning"}[0];
|
||||
my $nval = $dailytable{"night"}[0];
|
||||
|
||||
readingsBeginUpdate($hash);
|
||||
#-- is this a daily timer event ?
|
||||
my $regex = "((".join(")|(",@times)."))";
|
||||
my $isdaily = ( $targettime =~ /$regex/ )?1:0;
|
||||
@ -1191,6 +1190,7 @@ sub YAAHM_time {
|
||||
|
||||
YAAHM_checkMonthly($hash,'event',$targettime);
|
||||
|
||||
readingsBeginUpdate($hash);
|
||||
readingsBulkUpdate($hash,"prev_housetime",$prevtime);
|
||||
readingsBulkUpdate($hash,"next_housetime",$nexttime);
|
||||
readingsBulkUpdate($hash,"housetime",$targettime);
|
||||
@ -1263,7 +1263,7 @@ sub YAAHM_time {
|
||||
$xval = $dailytable{$targettime}[2];
|
||||
$msg = "Simulation ".$xval;
|
||||
if( $exec==1 ){
|
||||
Log3 $name,1,"[YAAHM_time] ecxecuting $xval";
|
||||
Log3 $name,1,"[YAAHM_time] executing $xval";
|
||||
fhem($xval);
|
||||
return
|
||||
}elsif( $exec==0 ){
|
||||
|
Loading…
x
Reference in New Issue
Block a user