From 5431a9df629f26fcc9a40b8043d0cd3940a9e665 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Wed, 24 Mar 2021 21:04:37 +0000 Subject: [PATCH] mqtt2.template: fix devstate icon in shellymotion git-svn-id: https://svn.fhem.de/fhem/trunk@24079 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 b3d46f7d5..ce459ca93 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -2768,7 +2768,7 @@ par:DEVNAME;name of this shelly;{ AttrVal("DEVICE","readingList","") =~ m,shelli par:ICON;ICON as set, defaults to motion_detector;{ AttrVal("DEVICE","icon","motion_detector") } attr DEVICE icon ICON attr DEVICE devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "true"?"10px-kreis-gruen":"10px-kreis-rot"; \ -my $moti = ReadingsVal($name,"motion","false") eq "true"?"people_sensor ":"message_presence"; \ +my $moti = ReadingsVal($name,"motion","false") eq "true"?"people_sensor":"message_presence"; \ "".FW_makeImage($onl)." ".FW_makeImage($moti).""} attr DEVICE readingList shellies/DEVNAME/online:.* online\ shellies/DEVNAME/sensor/status:.* { json2nameValue($EVENT) }\ @@ -2777,7 +2777,7 @@ attr DEVICE readingList shellies/DEVNAME/online:.* online\ attr DEVICE setList x_update:noArg shellies/DEVNAME/command update_fw\ x_mqttcom shellies/DEVNAME/command $EVTPART1 attr DEVICE model shellymotion -setreading DEVICE attrTemplateVersion 20210226 +setreading DEVICE attrTemplateVersion 20210324 # shellyht using original firmware