mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
10_FBDECT.pm: add raw command (Forum #111667)
git-svn-id: https://svn.fhem.de/fhem/trunk@22114 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b49ed585cb
commit
953fd481ce
@ -88,7 +88,10 @@ FBDECT_SetHttp($@)
|
||||
my ($hash, @a) = @_;
|
||||
my %cmd;
|
||||
my $p = $hash->{props};
|
||||
my $unittype = ReadingsVal($hash->{NAME}, "unittype", "");
|
||||
my $name = $hash->{NAME};
|
||||
my $unittype = ReadingsVal($name, "unittype", "");
|
||||
|
||||
$cmd{raw} = "textField";
|
||||
|
||||
if($p =~ m/switch/) {
|
||||
$cmd{off} = $cmd{on} = $cmd{toggle} = "noArg";
|
||||
@ -110,7 +113,6 @@ FBDECT_SetHttp($@)
|
||||
SetExtensionsCancel($hash);
|
||||
|
||||
my $cmd = $a[1];
|
||||
my $name = $hash->{NAME};
|
||||
return "" if(IsDisabled($name));
|
||||
Log3 $name, 3, "FBDECT set $name $cmd";
|
||||
|
||||
@ -146,6 +148,15 @@ FBDECT_SetHttp($@)
|
||||
IOWrite($hash, ReadingsVal($name,"AIN",0),"setblind&target=$cmd");
|
||||
return undef;
|
||||
}
|
||||
|
||||
if($cmd eq "raw") {
|
||||
shift @a; shift @a;
|
||||
return "Usage set $name raw <arguments>" if(!@a);
|
||||
IOWrite($hash, ReadingsVal($name,"AIN",0),join("&", @a));
|
||||
return undef;
|
||||
}
|
||||
|
||||
return "Internal Error, unknown command $cmd";
|
||||
}
|
||||
|
||||
###################################
|
||||
@ -664,6 +675,11 @@ FBDECT_Undef($$)
|
||||
<li>msgInterval <sec><br>
|
||||
Number of seconds between the sensor messages (FBAHA IODev only).
|
||||
</li>
|
||||
|
||||
<li>raw ...<br>
|
||||
Used for debugging.<br>
|
||||
Sends switchcmd=..., further parameters are joined with &.
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
@ -769,6 +785,11 @@ FBDECT_Undef($$)
|
||||
Anzahl der Sekunden zwischen den Sensornachrichten (nur mit FBAHA als
|
||||
IODev).
|
||||
</li>
|
||||
|
||||
<li>raw ...<br>
|
||||
Dient zum debuggen.<br>
|
||||
Sendet switchcmd=..., weitere Parameter werden per & zusammengeklebt.
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user