From ff783cc4a0f1cca827fc3eda56c10dc498fa3014 Mon Sep 17 00:00:00 2001 From: Beta-User Date: Sat, 28 Sep 2019 15:46:47 +0000 Subject: [PATCH] mqtt2.template: bugfix in OpenMQTTGateway git-svn-id: https://svn.fhem.de/fhem/trunk@20266 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index 0757481a0..4347eb6de 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -1621,7 +1621,7 @@ par:OFFCOMMANDREGEX;OFFCOMMANDREGEX typically is one or more Codes like 13381408 par:OFF_COMMAND;ON_COMMAND typically is a set of parameters like "value":"13381408","protocol":4,"length":24,"delay":350;undef par:BASE_ID;BASE_ID typically is home;{ AttrVal("DEVICE","readingList","") =~ m,([^:]+)[/]OpenMQTTGateway[^/]*[/].*:, ? $1 : undef } par:DEVNAME;BASE_ID typically is home;{ AttrVal("DEVICE","readingList","") =~ m,([^:]+)[/](OpenMQTTGateway[^/]*)[/].*:, ? $2 : undef } -par:DEVCID;CID of the new device - try to read the last RF value; { ReadingVal("DEVICE","value","unknown") } +par:DEVCID;CID of the new device - try to read the last RF value; { ReadingsVal("DEVICE","value","unknown") } par:NEWDEVROOM;Room of the calling device; {AttrVal("DEVCID","room","MQTT2_\DEVICE" )} defmod OMG_DEVCID MQTT2_\DEVICE DEVCID deletereading -q OMG_DEVCID (?!associatedWith).*