diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 97d2f0247..041c1f1b7 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -950,8 +950,8 @@ AnalyzePerlCommand($$;$) my $we = (($wday==0 || $wday==6) ? 1 : 0); if(!$we) { my $h2we = $attr{global}{holiday2we}; - if($h2we && $value{$h2we}) { - my ($a, $b) = ReplaceEventMap($h2we, [$h2we, $value{$h2we}], 0); + if($h2we && Value($h2we)) { + my ($a, $b) = ReplaceEventMap($h2we, [$h2we, Value($h2we)], 0); $we = 1 if($b ne "none"); } }