2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

Franks virtual pairing commands for winmatic

git-svn-id: https://svn.fhem.de/fhem/trunk@894 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-04-25 07:16:04 +00:00
parent 089bfea026
commit b01b94b82a

View File

@ -519,6 +519,8 @@ my %culHmSubTypeSets = (
{ "on-for-timer"=>"sec", on =>"", off=>"", toggle=>"", pct=>"" }, { "on-for-timer"=>"sec", on =>"", off=>"", toggle=>"", pct=>"" },
remote => remote =>
{ text => "<btn> [on|off] <txt1> <txt2>" }, { text => "<btn> [on|off] <txt1> <txt2>" },
winMatic =>
{ matic => "<btn>" },
); );
my %culHmModelSets = ( my %culHmModelSets = (
"HM-CC-TC"=> "HM-CC-TC"=>
@ -696,6 +698,15 @@ CUL_HM_Set($@)
CUL_HM_pushConfig($hash, $id, $dst, 2, $list, $data); CUL_HM_pushConfig($hash, $id, $dst, 2, $list, $data);
return; return;
} elsif($cmd =~ m/^matic(...)/) { ####################### By Frank
my $btna = sprintf "%X", $a[2];
my $lg = length($btna);
my $btnb =" ";
if ($lg eq "1"){
$btnb = sprintf("0%s", $btna);
}
$sndcmd = sprintf("++B03E%s%s%s40%s%s",$id, $dst, $id, $btnb, $chn);
} }
if($state) { if($state) {