From 9242c31e7eb34a76e3da81d569ffebc9cea3c89a Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sat, 9 Jan 2021 05:21:09 +0000 Subject: [PATCH] mqtt2.template: extend shelly_ix3 git-svn-id: https://svn.fhem.de/fhem/trunk@23492 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index dbabaa8f7..9c9849b2c 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -2736,6 +2736,14 @@ order:A_16c par:DEVNAME;name of this shelly;{ AttrVal("DEVICE","readingList","") =~ m,shellies/([^/]+)/, ? $1 : undef } #par:ICON;ICON as set, defaults to fts_window_1w_open;{ AttrVal("DEVICE","icon","fts_window_1w_open") } #attr DEVICE icon ICON +attr DEVICE readingList shellies/DEVNAME/online:.* online\ + shellies/DEVNAME/announce:.* { json2nameValue($EVENT) }\ + shellies/DEVNAME/input/0:.* input_0\ + shellies/DEVNAME/input/1:.* input_1\ + shellies/DEVNAME/input/2:.* input_2\ + shellies/DEVNAME/input_event/0:.* { json2nameValue($EVENT, '0_', $JSONMAP) }\ + shellies/DEVNAME/input_event/1:.* { json2nameValue($EVENT, '1_', $JSONMAP) }\ + shellies/DEVNAME/input_event/2:.* { json2nameValue($EVENT, '2_', $JSONMAP) } attr DEVICE stateFormat In 1:\ input_0\
In 2:\ @@ -2744,7 +2752,7 @@ input_1\ input_2 attr DEVICE devStateIcon 0:off 1:on attr DEVICE model shelly_ix3 -setreading DEVICE attrTemplateVersion 20201110 +setreading DEVICE attrTemplateVersion 20210108 #shelly2rgbw # contributed by dkreutz http://forum.fhem.de/index.php/topic,94060.msg944338.html#msg944338