2
0
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:
klaus.schauer 2020-10-28 13:28:17 +00:00
parent bd7462d447
commit 65f8d32178

View File

@ -15,6 +15,7 @@ sub ElsnerWS_Delete($$);
sub ElsnerWS_Initialize($);
sub ElsnerWS_Read($);
sub ElsnerWS_Ready($);
sub ElsnerWS_Shutdown($);
# trigger values for down and up commands
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 " .
"windSpeedWindy windSpeedStormy windSpeedWindyDelay windSpeedStormyDelay " .
$readingFnAttributes;
$hash->{ShutdownFn} = "ElsnerWS_Shutdown";
$hash->{parseParams} = 1;
#$hash->{NotifyOrderPrefix} = "45-";
return;
@ -972,6 +974,13 @@ sub ElsnerWS_Delete($$) {
return undef;
}
# Shutdown
sub ElsnerWS_Shutdown($) {
my ($hash) = @_;
DevIo_CloseDev($hash);
return undef;
}
1;
=pod