mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
36_JeeLink.pm: added initMessages (forum: http://forum.fhem.de/index.php/topic,44092.msg362677.html#msg362677)
git-svn-id: https://svn.fhem.de/fhem/trunk@9956 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
899f3ff26c
commit
892c6a759e
@ -30,7 +30,6 @@ my %matchListPCA301 = (
|
|||||||
"5:AliRF" => "^\\S+\\s+5 ",
|
"5:AliRF" => "^\\S+\\s+5 ",
|
||||||
"6:EMT7110" => "^OK\\sEMT7110\\s",
|
"6:EMT7110" => "^OK\\sEMT7110\\s",
|
||||||
"7:KeyValueProtocol" => "^OK\\sVALUES\\s",
|
"7:KeyValueProtocol" => "^OK\\sVALUES\\s",
|
||||||
"77:KeyValueProtocol" => "^OK\\sDICTIONARY\\s",
|
|
||||||
);
|
);
|
||||||
|
|
||||||
my %matchListJeeLink433 = (
|
my %matchListJeeLink433 = (
|
||||||
@ -662,6 +661,12 @@ JeeLink_Parse($$$$)
|
|||||||
return if($dmsg =~ m/^ / ); # ignore startup messages
|
return if($dmsg =~ m/^ / ); # ignore startup messages
|
||||||
return if($dmsg =~ m/^-> ack/ ); # ignore send ack
|
return if($dmsg =~ m/^-> ack/ ); # ignore send ack
|
||||||
|
|
||||||
|
if( $dmsg =~ /^INIT / ) {
|
||||||
|
$hash->{initMessages} .= "\n" if( $hash->{initMessages} );
|
||||||
|
$hash->{initMessages} .= $dmsg;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if($dmsg =~ m/^\[/ ) {
|
if($dmsg =~ m/^\[/ ) {
|
||||||
$hash->{model} = $dmsg;
|
$hash->{model} = $dmsg;
|
||||||
|
|
||||||
@ -698,6 +703,7 @@ JeeLink_Parse($$$$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$hash->{STATE} = "Initialized";
|
$hash->{STATE} = "Initialized";
|
||||||
|
$hash->{initMessages} = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user