diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index 149eb6e06..549ffd046 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -3391,10 +3391,10 @@ attr DEVICE readingList $\DEVICETOPIC/online:.* online\ fhem2shelly/rpc:.* {} attr DEVICE devStateIcon {my $onl = ReadingsVal($name,'online','false') eq 'false'?'10px-kreis-rot':'10px-kreis-gruen'; $onl = FW_makeImage($onl); my $light = FW_makeImage(ReadingsVal($name,'state','off')); my $temp = ReadingsVal($name,'temperature','-100'); my $ip = ReadingsVal($name,'ip','none'); my $reb = ReadingsVal($name,'sys_restart_required','false') eq 'true'?' ... Notwendigen Reboot durchführen':''; qq(${onl}${light}$reb
Temp: $temp °C
)} attr DEVICE jsonMap switch_state:state switch_temperature_tC:temperature switch_temperature_tF:0 params_wifi_sta_ip:ip -attr DEVICE setStateList on off toggle +attr DEVICE setStateList on off toggle on-for-timer off-for-timer attr DEVICE webCmd : attr DEVICE model shellyPlus_1 -setreading DEVICE attrTemplateVersion 20220117 +setreading DEVICE attrTemplateVersion 20220118 set DEVICE x_reboot option:{ CALLSPEECHRECOGN } set DEVICE attrTemplate speechcontrol_type_switch @@ -3409,7 +3409,7 @@ set DEVICE attrTemplate shellyPlus_1 \CALLSPEECHRECOGN=0 attr DEVICE devStateIcon {my $onl = ReadingsVal($name,'online','false') eq 'false'?'10px-kreis-rot':'10px-kreis-gruen'; $onl = FW_makeImage($onl); my $light = FW_makeImage(ReadingsVal($name,'state','off')); my $cons = ReadingsNum($name,'apower',0); my $total = round(ReadingsNum($name,'aenergy_total',0)/1000,3); my $temp = ReadingsVal($name,'temperature','-100'); my $ip = ReadingsVal($name,'ip','none'); my $reb = ReadingsVal($name,'sys_restart_required','false') eq 'true'?' ... Notwendigen Reboot durchführen':''; qq(${onl}${light}$reb
Verbrauch: $cons W / Total: $total kwh / Temp: $temp °C
)} attr DEVICE jsonMap switch_state:state switch_aenergy_total:aenergy_total switch_apower:apower switch_temperature_tC:temperature switch_temperature_tF:0 params_wifi_sta_ip:ip attr DEVICE model shellyPlus_1pm -setreading DEVICE attrTemplateVersion 20220117 +setreading DEVICE attrTemplateVersion 20220118 option:{ CALLSPEECHRECOGN } set DEVICE attrTemplate speechcontrol_type_switch