diff --git a/fhem/FHEM/98_dummy.pm b/fhem/FHEM/98_dummy.pm index c2651175b..5494f16ee 100644 --- a/fhem/FHEM/98_dummy.pm +++ b/fhem/FHEM/98_dummy.pm @@ -14,6 +14,7 @@ dummy_Initialize($) $hash->{SetFn} = "dummy_Set"; $hash->{DefFn} = "dummy_Define"; $hash->{AttrList} = "readingList setList useSetExtensions " . + "disable disabledForIntervals ". $readingFnAttributes; } @@ -37,6 +38,11 @@ dummy_Set($@) return "Unknown argument ?, choose one of $setList" if($a[0] eq "?"); } + return undef + if($attr{$name} && # Avoid checking it if only STATE is inactive + ($attr{$name}{disable} || $attr{$name}{disabledForIntervals}) && + IsDisabled($name)); + my @rl = split(" ", AttrVal($name, "readingList", "")); my $doRet; eval { @@ -110,6 +116,8 @@ dummy_Define($$) Attributes