36_JeeLink.pm: cleanup of model internal (by HCS)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14707 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2017-07-13 18:08:33 +00:00
parent d6148f9aef
commit 8eb5e252e1

View File

@ -708,7 +708,17 @@ JeeLink_Parse($$$$)
}
if($dmsg =~ m/^\[/ ) {
$hash->{model} = $dmsg;
if($dmsg =~ m/^\[LaCrosseITPlusReader/) {
my $model = "";
my $settings = "";
($model, $settings) = split(/ /, $dmsg, 2);
chop($settings);
$hash->{model} = substr($model, 1);
$hash->{settings} = $settings;
}
else {
$hash->{model} = $dmsg;
}
if( ReadingsVal($name,"state","" ) eq "opened" ) {
if( my $initCommandsString = AttrVal($name, "initCommands", undef) ) {