2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

10_MQTT2_DEVICE.pm: readinglist-prefix exception for zigbee2mqtt (Forum #91394)

git-svn-id: https://svn.fhem.de/fhem/trunk@17888 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-12-03 17:13:16 +00:00
parent 51c9607fa2
commit aefbf48d65

View File

@ -161,7 +161,7 @@ MQTT2_DEVICE_Parse($$)
my $ret = json2nameValue($value);
if(keys %{$ret}) {
$topic =~ m,.*/([^/]+),;
my $prefix = $1 ? "${1}_" : "";
my $prefix = ($1 && $1 !~m/^0x[0-9a-f]+$/) ? "${1}_" : ""; # 91394
$add = "{ json2nameValue(\$EVENT, '$prefix') }";
}
}