mqtt2.template: fix template for sonoff_tasmota_ch2

git-svn-id: https://svn.fhem.de/fhem/trunk@17825 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-11-23 10:25:21 +00:00
parent faa01f6b06
commit 8fff3eba82

View File

@@ -83,7 +83,7 @@ attr DEVICE setList \
# NOTE: a second device will be created for the second channel
name:sonoff_tasmota_2ch
filter:TYPE=MQTT2_DEVICE
par:COMMAND;Command topic prefix, without trailing /;{ AttrVal("DEVICE","readingList","") =~ m,([^:]*)\btele(/.*)?/LWT:, ? "${1}cmnd/$2" : undef }
par:COMMAND;Command topic prefix, without trailing /;{ AttrVal("DEVICE","readingList","") =~ m,([^:]*)\btele(/.*)?/LWT:, ? "${1}cmnd$2" : undef }
attr DEVICE eventMap { dev=>{ON=>'on',OFF=>'off'} }
attr DEVICE stateFormat POWER1
attr DEVICE setList \