mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 12:46:03 +00:00
mqtt2.template: fix devstate icon in shellymotion
git-svn-id: https://svn.fhem.de/fhem/trunk@24079 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
df6e1b17cf
commit
5431a9df62
@ -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"; \
|
||||
"<a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage($onl)."</a> <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($moti)."</a>"}
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user