From c479ea3cd57f091f3724e8187d28282bc4ae6cfa Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 1 Feb 2015 13:19:39 +0000 Subject: [PATCH] fhem.pl: add "attr xxx disabled toggle" (Forum #33124) git-svn-id: https://svn.fhem.de/fhem/trunk@7815 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 4 ++++ 1 file changed, 4 insertions(+) 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;