diff --git a/fhem/contrib/58_SecvestIP.pm b/fhem/contrib/58_SecvestIP.pm index fdf3f5309..db344689d 100644 --- a/fhem/contrib/58_SecvestIP.pm +++ b/fhem/contrib/58_SecvestIP.pm @@ -77,13 +77,13 @@ sub SecvestIP_Set($$$) { my ($hash, $name ,$cmd) = @_; + # Get current SecvestIP state + SecvestIP_Get($hash); + return "Unknown argument $cmd, choose one of state:Set,Unset,PartSet" if ($cmd eq "?"); Log 1, "SecvestIP: Set $name $cmd"; - # Get current SecvestIP state - SecvestIP_Get($hash); - my $url = 'http://'.$hash->{HOST}.'/'; my $agent = LWP::UserAgent->new(