2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

holiday: readings*Update added (betateilchen, forum #22774)

git-svn-id: https://svn.fhem.de/fhem/trunk@5606 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-04-23 10:44:26 +00:00
parent 5f070d9c9a
commit a5950dbb58

View File

@ -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($)
<br>
<a name="holidayattr"></a>
<b>Attributes</b><ul>N/A</ul><br>
<b>Attributes</b><ul>
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
</ul><br>
</ul>