mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
10_MQTT2_DEVICE.pm: Fix auto-regexp createion for bridges (Forum #92946)
git-svn-id: https://svn.fhem.de/fhem/trunk@17715 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ec79ab39c3
commit
b490673b47
@ -126,7 +126,8 @@ MQTT2_DEVICE_Parse($$)
|
||||
}
|
||||
}
|
||||
|
||||
# autocreate and expand readingList
|
||||
#################################################
|
||||
# autocreate and/or expand readingList
|
||||
if($autocreate && !%fnd) {
|
||||
return "" if($cid && $cid =~ m/mosqpub.*/);
|
||||
|
||||
@ -161,7 +162,8 @@ MQTT2_DEVICE_Parse($$)
|
||||
}
|
||||
my $rl = AttrVal($nn, "readingList", "");
|
||||
$rl .= "\n" if($rl);
|
||||
CommandAttr(undef, "$nn readingList $rl$cid:$topic:.* $add");
|
||||
my $regexpCid = ($cid eq $newCid ? "$cid:" : "");
|
||||
CommandAttr(undef, "$nn readingList $rl${regexpCid}$topic:.* $add");
|
||||
MQTT2_DEVICE_Parse($iodev, $msg);
|
||||
}, undef);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user