mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
FRITZBOX: improved debugging
git-svn-id: https://svn.fhem.de/fhem/trunk@10359 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f7099ff279
commit
9b8a771971
@ -400,8 +400,10 @@ sub FRITZBOX_Set($$@)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif ( lc $cmd eq 'diversity') {
|
elsif ( lc $cmd eq 'diversity') {
|
||||||
if ( int @val == 2 && defined( $hash->{READINGS}{"diversity".$val[0]} ) && $val[1] =~ /^(on|off)$/ ) {
|
if ( int @val == 2 && $val[1] =~ /^(on|off)$/ ) {
|
||||||
Log3 $name, 3, "FRITZBOX: set $name $cmd ".join(" ", @val);
|
Log3 $name, 3, "FRITZBOX: set $name $cmd ".join(" ", @val);
|
||||||
|
return "Error, no diversity".$val[0]." to set."
|
||||||
|
unless defined $hash->{READINGS}{"diversity".$val[0]};
|
||||||
my $state = $val[1];
|
my $state = $val[1];
|
||||||
$state =~ s/on/1/;
|
$state =~ s/on/1/;
|
||||||
$state =~ s/off/0/;
|
$state =~ s/off/0/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user