From 38ca088b96b0ce77c4d31890b5620e5597f54c7d Mon Sep 17 00:00:00 2001
From: Beta-User <>
Date: Sun, 23 May 2021 11:48:51 +0000
Subject: [PATCH] mqtt2.template: possible fix for tasmota >= 9.3 in INFO.
git-svn-id: https://svn.fhem.de/fhem/trunk@24494 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/lib/AttrTemplate/mqtt2.template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template
index a2ae51ccf..2b0a08600 100644
--- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template
+++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template
@@ -952,7 +952,7 @@ attr DEVICE readingList \
TELETOPIC/LWT:.* LWT\
TELETOPIC/STATE:.* { json2nameValue($EVENT,'',$JSONMAP) }\
TELETOPIC/SENSOR:.* { json2nameValue($EVENT,'',$JSONMAP) }\
- TELETOPIC/INFO.:.* { json2nameValue($EVENT,'',$JSONMAP) }\
+ TELETOPIC/INFO.:.* { $EVENT =~ m,^..Info[1-3]..(.+).$, ? json2nameValue($1,'',$JSONMAP) : json2nameValue($EVENT,'',$JSONMAP) }\
TELETOPIC/UPTIME:.* { json2nameValue($EVENT,'',$JSONMAP) }\
STATTOPIC/POWER1:.* state\
STATTOPIC/RESULT:.* { json2nameValue($EVENT,'',$JSONMAP) }
@@ -961,7 +961,7 @@ attr DEVICE setStateList on off toggle
attr DEVICE comment NOTE: For on-for-timer SetExtensions are used. You may add on-for-timer option running on the device. The following is limited to 1h max duration, but will not affect future simple "on" commands:
on-for-timer {my $duration = $EVTPART1*10; 'cmnd/CMNDTOPIC/Backlog POWER1 1; delay '.$duration.'; POWER1 0'}
See the "Praxisbeispiele" in the wiki for "pulseTime1" alternative option and it's restrictions.
attr DEVICE autocreate 0
attr DEVICE model tasmota_basic_state_power1
-setreading DEVICE attrTemplateVersion 20210515
+setreading DEVICE attrTemplateVersion 20210523
option:{ CALLSPEECHRECOGN }
set DEVICE attrTemplate speechcontrol_type_switch