2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 09:49:50 +00:00

Patch von Andre (Nutzung von FW_summaryFn und FW_detailFN) http://forum.fhem.de/index.php?t=msg&goto=75021&rid=430#msg_75021

git-svn-id: https://svn.fhem.de/fhem/trunk@3116 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dennis1980 2013-04-25 16:39:42 +00:00
parent 935da812e9
commit 7eecd3f013

View File

@ -22,9 +22,20 @@ sub DeviceMonitor_Initialize($)
$hash->{NotifyFn} = "DeviceMonitor_Notify"; $hash->{NotifyFn} = "DeviceMonitor_Notify";
$hash->{GetFn} = "DeviceMonitor_Get"; $hash->{GetFn} = "DeviceMonitor_Get";
$hash->{AttrList} = "disable:0,1"; $hash->{AttrList} = "disable:0,1";
$hash->{FW_summaryFn} = "DeviceMonitor_FwFn";
$hash->{FW_detailFn} = "DeviceMonitor_FwFn";
addToAttrList("device_timeout"); addToAttrList("device_timeout");
} }
sub DeviceMonitor_FwFn($$)
{
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
my $hash = $defs{$d};
return DeviceMonitor_GetResult($hash->{NAME},"dead","html");
}
sub DeviceMonitor_Define($$) sub DeviceMonitor_Define($$)
{ {
my ($hash, $def) = @_; my ($hash, $def) = @_;