2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 06:48:43 +00:00

Setextensions.pm: toggle for state dim (Forum #49391)

git-svn-id: https://svn.fhem.de/fhem/trunk@10858 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-02-15 17:42:13 +00:00
parent ae70fa1542
commit a0764bc7fe

View File

@ -138,6 +138,7 @@ SetExtensions($$@)
}
} elsif($cmd eq "toggle") {
$value = ($1==0 ? "off" : "on") if($value =~ m/dim (\d+)/); # Forum #49391
DoSet($name, $value =~ m/^on/ ? "off" : "on");
}