mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
00_ElsnerWS: shutdown routine added
git-svn-id: https://svn.fhem.de/fhem/trunk@23038 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bd7462d447
commit
65f8d32178
@ -15,6 +15,7 @@ sub ElsnerWS_Delete($$);
|
|||||||
sub ElsnerWS_Initialize($);
|
sub ElsnerWS_Initialize($);
|
||||||
sub ElsnerWS_Read($);
|
sub ElsnerWS_Read($);
|
||||||
sub ElsnerWS_Ready($);
|
sub ElsnerWS_Ready($);
|
||||||
|
sub ElsnerWS_Shutdown($);
|
||||||
|
|
||||||
# trigger values for down and up commands
|
# trigger values for down and up commands
|
||||||
my %customCmdTrigger = ('dayNight' => ['night', 'day'],
|
my %customCmdTrigger = ('dayNight' => ['night', 'day'],
|
||||||
@ -59,6 +60,7 @@ sub ElsnerWS_Initialize($) {
|
|||||||
"signOfLife:select,off,on signOfLifeInterval:slider,1,1,15 timeEvent:select,no,yes updateGlobalAttr:select,no,yes " .
|
"signOfLife:select,off,on signOfLifeInterval:slider,1,1,15 timeEvent:select,no,yes updateGlobalAttr:select,no,yes " .
|
||||||
"windSpeedWindy windSpeedStormy windSpeedWindyDelay windSpeedStormyDelay " .
|
"windSpeedWindy windSpeedStormy windSpeedWindyDelay windSpeedStormyDelay " .
|
||||||
$readingFnAttributes;
|
$readingFnAttributes;
|
||||||
|
$hash->{ShutdownFn} = "ElsnerWS_Shutdown";
|
||||||
$hash->{parseParams} = 1;
|
$hash->{parseParams} = 1;
|
||||||
#$hash->{NotifyOrderPrefix} = "45-";
|
#$hash->{NotifyOrderPrefix} = "45-";
|
||||||
return;
|
return;
|
||||||
@ -972,6 +974,13 @@ sub ElsnerWS_Delete($$) {
|
|||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Shutdown
|
||||||
|
sub ElsnerWS_Shutdown($) {
|
||||||
|
my ($hash) = @_;
|
||||||
|
DevIo_CloseDev($hash);
|
||||||
|
return undef;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user