mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
mqtt2.template: devtopic fix for experimental version for shelly TRV
git-svn-id: https://svn.fhem.de/fhem/trunk@26453 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
707e581d4a
commit
6e17b67ae8
@ -3294,10 +3294,10 @@ name:shelly_TRV
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*shellies.*
|
||||
desc:shelly-TRV using original firmware <br>early version
|
||||
order:A_16d
|
||||
par:DEVNAME;Shelly device name in the topic;{ AttrVal('DEVICE','readingList','') =~ m,shellies/([^/]*)/, ? $1 : undef }
|
||||
par:DEV_TPC;"shellies/" and Shelly name in the topic;{ AttrVal('DEVICE','devicetopic',AttrVal('DEVICE','readingList','')) =~ m<(shellies/[^/]+)/> ? $1 : undef }
|
||||
par:ICON;ICON as set, defaults to temp_control;{ AttrVal('DEVICE','icon','temp_control') }
|
||||
attr DEVICE icon ICON
|
||||
attr DEVICE devicetopic shellies/DEVNAME
|
||||
attr DEVICE devicetopic DEV_TPC
|
||||
attr DEVICE readingList $\DEVICETOPIC/status:.* { json2nameValue($EVENT,'',$JSONMAP) }\
|
||||
$\DEVICETOPIC/info:.* { json2nameValue($EVENT,'',$JSONMAP) }\
|
||||
$\DEVICETOPIC/settings:.* { json2nameValue($EVENT,'',$JSONMAP) }\
|
||||
|
Loading…
x
Reference in New Issue
Block a user