mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 06:36:04 +00:00
FHEM/10_MQTT2_DEVICE.pm: fix JSONMAP for . in devname (Forum #94789)
git-svn-id: https://svn.fhem.de/fhem/trunk@20893 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
96f213041e
commit
7d2c264cd3
@ -163,7 +163,7 @@ MQTT2_DEVICE_Parse($$)
|
|||||||
if($code =~ m/^{.*}$/s) {
|
if($code =~ m/^{.*}$/s) {
|
||||||
$code = EvalSpecials($code, ("%TOPIC"=>$topic, "%EVENT"=>$value,
|
$code = EvalSpecials($code, ("%TOPIC"=>$topic, "%EVENT"=>$value,
|
||||||
"%DEVICETOPIC"=>$hash->{DEVICETOPIC}, "%NAME"=>$hash->{NAME},
|
"%DEVICETOPIC"=>$hash->{DEVICETOPIC}, "%NAME"=>$hash->{NAME},
|
||||||
"%CID"=>$cid, "%JSONMAP","\$defs{$dev}{JSONMAP}"));
|
"%CID"=>$cid, "%JSONMAP","\$defs{\"$dev\"}{JSONMAP}"));
|
||||||
my $ret = AnalyzePerlCommand(undef, $code);
|
my $ret = AnalyzePerlCommand(undef, $code);
|
||||||
if($ret && ref $ret eq "HASH") {
|
if($ret && ref $ret eq "HASH") {
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user