diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 9431a9e56..b08844b24 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -2277,6 +2277,10 @@ CommandAttr($$) } } + if($attrName eq 'disable' and $a[2] eq 'toggle') { + $a[2] = IsDisabled($sdev) ? 0 : 1; + } + if($attrName eq "userReadings") { my %userReadings;