2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

10_MQTT2_DEVICE.pm: allow multiple zigbee networks for the picture (Forum #91394)

git-svn-id: https://svn.fhem.de/fhem/trunk@20493 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-11-11 12:56:54 +00:00
parent 77603c7c04
commit 804df5c6aa

View File

@ -9,6 +9,8 @@ use SetExtensions;
my $bridgeTimerStarted;
my $subscrCheckTimerStarted;
sub zigbee2mqtt_devStateIcon255($;$$);
use vars qw($FW_ME);
use vars qw($FW_userAgent);
sub
MQTT2_DEVICE_Initialize($)
@ -631,10 +633,10 @@ MQTT2_DEVICE_nlData($)
for my $n (devspec2array("TYPE=MQTT2_DEVICE")) {
my $cid = $defs{$n}{CID};
if($cid) {
$cid =~ s/zigbee_//;
$cid =~ s/zigbee\d*_//;
$n2n{$cid} = $n;
}
if(AttrVal($n, "readingList","") =~ m,zigbee2mqtt/(.*):,) {
if(AttrVal($n, "readingList","") =~ m,zigbee\d*mqtt/(.*):,) {
$n2n{$1} = $n;
}
}