From a348b54c44ffd7f180f89cbfcb49c5a7b8361f93 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sat, 14 Mar 2020 13:18:17 +0000 Subject: [PATCH] mqtt2.template: bugfix in tasmota_POW_USB_split git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21422 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/lib/AttrTemplate/mqtt2.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/lib/AttrTemplate/mqtt2.template b/FHEM/lib/AttrTemplate/mqtt2.template index b301fac86..38191a134 100644 --- a/FHEM/lib/AttrTemplate/mqtt2.template +++ b/FHEM/lib/AttrTemplate/mqtt2.template @@ -725,14 +725,13 @@ set DEVICE attrTemplate tasmota_2channel_split set DEVICE attrTemplate tasmota_POW par:CMNDTOPIC;Command topic prefix, without trailing /;{ AttrVal("DEVICE","readingList","") =~ m,([^:]*)\b(tele|cmnd|stat)(/.*)?/LWT:, ? "${1}cmnd$3" : undef } attr DEVICE comment Channel 1 for DEVICE, see also DEVICE_CH2 -copy DEVICE DEVICE_CH2 par:ICON;ICON as set, defaults to usb;{ AttrVal("DEVICE_CH2","icon","usb") } attr DEVICE_CH2 icon ICON attr DEVICE_CH2 comment Channel 2 (USB outlets) for DEVICE setreading DEVICE_CH2 associatedWith DEVICE attr DEVICE_CH2 devStateIcon on:usb:off off:usb@red:on attr DEVICE_CH2 setStateList on off toggle -set DEVICE_CH2 attrTemplate speech_recognition_type_switch +#set DEVICE_CH2 attrTemplate speech_recognition_alaxaName_firstrun attr DEVICE,DEVICE_CH2 model tasmota_POW_USB_split # plug with LED flashed with Tasmota. @@ -892,6 +891,7 @@ attr DEVICE_CH2 setList \ on:noArg CMNDTOPIC/POWER2 1\ toggle:noArg CMNDTOPIC/POWER2 2 attr DEVICE_CH2 setStateList on off toggle +set DEVICE_CH2 attrTemplate speech_recognition_alaxaName_firstrun attr DEVICE,DEVICE_CH2 model tasmota_2channel_split #contributed by 87insane