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:
parent
77603c7c04
commit
804df5c6aa
@ -9,6 +9,8 @@ use SetExtensions;
|
|||||||
my $bridgeTimerStarted;
|
my $bridgeTimerStarted;
|
||||||
my $subscrCheckTimerStarted;
|
my $subscrCheckTimerStarted;
|
||||||
sub zigbee2mqtt_devStateIcon255($;$$);
|
sub zigbee2mqtt_devStateIcon255($;$$);
|
||||||
|
use vars qw($FW_ME);
|
||||||
|
use vars qw($FW_userAgent);
|
||||||
|
|
||||||
sub
|
sub
|
||||||
MQTT2_DEVICE_Initialize($)
|
MQTT2_DEVICE_Initialize($)
|
||||||
@ -631,10 +633,10 @@ MQTT2_DEVICE_nlData($)
|
|||||||
for my $n (devspec2array("TYPE=MQTT2_DEVICE")) {
|
for my $n (devspec2array("TYPE=MQTT2_DEVICE")) {
|
||||||
my $cid = $defs{$n}{CID};
|
my $cid = $defs{$n}{CID};
|
||||||
if($cid) {
|
if($cid) {
|
||||||
$cid =~ s/zigbee_//;
|
$cid =~ s/zigbee\d*_//;
|
||||||
$n2n{$cid} = $n;
|
$n2n{$cid} = $n;
|
||||||
}
|
}
|
||||||
if(AttrVal($n, "readingList","") =~ m,zigbee2mqtt/(.*):,) {
|
if(AttrVal($n, "readingList","") =~ m,zigbee\d*mqtt/(.*):,) {
|
||||||
$n2n{$1} = $n;
|
$n2n{$1} = $n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user