mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
CUL: allowing rfmode setting for non-attached devices
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4468 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0ef1f3e6bc
commit
8ecfb597b0
@ -1041,20 +1041,20 @@ CUL_Attr(@)
|
|||||||
|
|
||||||
if($aVal eq "HomeMatic") {
|
if($aVal eq "HomeMatic") {
|
||||||
return if($hash->{initString} =~ m/Ar/);
|
return if($hash->{initString} =~ m/Ar/);
|
||||||
if(($hash->{CMDS} =~ m/A/) || IsDummy($hash->{NAME})) {
|
if($hash->{CMDS} =~ m/A/ || IsDummy($hash->{NAME}) || !$hash->{FD}) {
|
||||||
$hash->{Clients} = $clientsHomeMatic;
|
$hash->{Clients} = $clientsHomeMatic;
|
||||||
$hash->{MatchList} = \%matchListHomeMatic;
|
$hash->{MatchList} = \%matchListHomeMatic;
|
||||||
CUL_SimpleWrite($hash, "Zx") if ($hash->{CMDS} =~ m/Z/); # reset Moritz
|
CUL_SimpleWrite($hash, "Zx") if ($hash->{CMDS} =~ m/Z/); # reset Moritz
|
||||||
$hash->{initString} = "X21\nAr"; # X21 is needed for RSSI reporting
|
$hash->{initString} = "X21\nAr"; # X21 is needed for RSSI reporting
|
||||||
CUL_SimpleWrite($hash, $hash->{initString});
|
CUL_SimpleWrite($hash, $hash->{initString});
|
||||||
} else {
|
} else {
|
||||||
Log3 $name, 2, $msg;
|
Log3 $name, 2, $msg;
|
||||||
return $msg;
|
return $msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
} elsif($aVal eq "MAX") {
|
} elsif($aVal eq "MAX") {
|
||||||
return if($hash->{initString} =~ m/Zr/);
|
return if($hash->{initString} =~ m/Zr/);
|
||||||
if(($hash->{CMDS} =~ m/Z/) || IsDummy($hash->{NAME})) {
|
if($hash->{CMDS} =~ m/Z/ || IsDummy($hash->{NAME}) || !$hash->{FD}) {
|
||||||
$hash->{Clients} = $clientsMAX;
|
$hash->{Clients} = $clientsMAX;
|
||||||
$hash->{MatchList} = \%matchListMAX;
|
$hash->{MatchList} = \%matchListMAX;
|
||||||
CUL_SimpleWrite($hash, "Ax") if ($hash->{CMDS} =~ m/A/); # reset AskSin
|
CUL_SimpleWrite($hash, "Ax") if ($hash->{CMDS} =~ m/A/); # reset AskSin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user