2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +00:00

98_fheminfo.pm: #100280

git-svn-id: https://svn.fhem.de/fhem/trunk@19866 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2019-07-20 10:29:17 +00:00
parent ba655d37ab
commit 4ef1e8fb93

View File

@ -269,12 +269,21 @@ sub _fi2_zwave($) {
$mName = $2; $mName = $2;
next; next;
} }
if($l =~ m/<Product type\s*=\s*"([^"]*)".*id\s*=\s*"([^"]*)".*name\s*=\s*"([^"]*)"/) {
if($mf eq $lastMf && $prod eq lc($1) && $id eq lc($2)) { if($l =~ m/<Product config\s*=\s*"([^"]*)".*id\s*=\s*"([^"]*)".*name\s*=\s*"([^"]*)".*type\s*=\s*"([^"]*)"/) {
if($mf eq $lastMf && $prod eq lc($4) && $id eq lc($2)) {
$ret = "$mName $3"; $ret = "$mName $3";
last; last;
} }
} }
# if($l =~ m/<Product type\s*=\s*"([^"]*)".*id\s*=\s*"([^"]*)".*name\s*=\s*"([^"]*)"/) {
# if($mf eq $lastMf && $prod eq lc($1) && $id eq lc($2)) {
# $ret = "$mName $3";
# last;
# }
# }
} }
return $ret if($ret); return $ret if($ret);
return $zwave; return $zwave;