diff --git a/fhem/FHEM/95_holiday.pm b/fhem/FHEM/95_holiday.pm
index 9be806466..b5f0e1de0 100755
--- a/fhem/FHEM/95_holiday.pm
+++ b/fhem/FHEM/95_holiday.pm
@@ -17,6 +17,7 @@ holiday_Initialize($)
$hash->{DefFn} = "holiday_Define";
$hash->{GetFn} = "holiday_Get";
$hash->{UndefFn} = "holiday_Undef";
+ $hash->{AttrList} = $readingFnAttributes;
}
@@ -192,12 +193,15 @@ holiday_refresh($$)
InternalTimer($nt, "holiday_refresh", $name, 0);
if($internal) {
- $hash->{STATE} = $found;
+ readingsBeginUpdate($hash);
+ readingsBulkUpdate($hash, 'state', $found);
+ readingsBulkUpdate($hash, 'yesterday', CommandGet(undef,"$name yesterday"));
+ readingsBulkUpdate($hash, 'tomorrow', CommandGet(undef,"$name tomorrow"));
+ readingsEndUpdate($hash,1);
return undef;
} else {
return $found;
}
-
}
sub
@@ -467,7 +471,9 @@ western_easter($)
- Attributes