diff --git a/fhem/FHEM/98_GEOFANCY.pm b/fhem/FHEM/98_GEOFANCY.pm index 97ccfd66f..21c5e4bd6 100755 --- a/fhem/FHEM/98_GEOFANCY.pm +++ b/fhem/FHEM/98_GEOFANCY.pm @@ -69,7 +69,7 @@ sub GEOFANCY_Initialize($) { $hash->{SetFn} = "GEOFANCY_Set"; $hash->{DefFn} = "GEOFANCY_Define"; $hash->{UndefFn} = "GEOFANCY_Undefine"; - $hash->{AttrList} = "devAlias " . $readingFnAttributes; + $hash->{AttrList} = "devAlias disabled:0,1 " . $readingFnAttributes; } ################################### @@ -194,6 +194,10 @@ sub GEOFANCY_CGI() { "NOK No GEOFANCY device for webhook $link" ) unless ($name); + # return error if no such device + return ( "text/plain; charset=utf-8", "NOK disabled" ) + if ( IsDisabled($name) ); + # extract values from URI my $webArgs; foreach my $pv ( split( "&", $URI ) ) {