mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
46_PW_Circle: Added toggle-command
git-svn-id: https://svn.fhem.de/fhem/trunk@17301 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5be02ac11e
commit
878f9c602d
@ -126,7 +126,10 @@ sub PW_Circle_Set($@)
|
||||
if($opt eq "on"||$opt eq "off")
|
||||
{
|
||||
IOWrite($hash,$hash->{CODE},$opt);
|
||||
} elsif($opt =~ "(on|off)-for-timer")
|
||||
} elsif ($opt eq "toggle") {
|
||||
$opt = ReadingsVal($name,"state","off") eq "off" ? "on" : "off";
|
||||
IOWrite($hash,$hash->{CODE},$opt);
|
||||
}elsif($opt =~ "(on|off)-for-timer")
|
||||
{
|
||||
if (@a == 1) {
|
||||
IOWrite($hash,$hash->{CODE},$1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user