mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
mqtt2.template: bugfixes shellyflood + ..ht; httpmod.template: update tasmotaupdate
git-svn-id: https://svn.fhem.de/fhem/trunk@21481 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3c6c830bc5
commit
3c3e3d1bcc
@ -618,7 +618,7 @@ attr DEVICE reading02OExpr $val =~ m/^(.{4})-(.{2})-(.{2})$/ ;; "$3.$2.$1"
|
||||
attr DEVICE reading02Regex relative-time[\w\W]*?datetime="(\d*-\d*-\d*)T\d*:\d*:\d*Z"
|
||||
attr DEVICE showError 1
|
||||
attr DEVICE showMatched 1
|
||||
attr DEVICE stateFormat { my $ret ="";;\
|
||||
attr DEVICE stateFormat { my $ret ="";;\
|
||||
my $lastCheck = ReadingsTimestamp($name,"MATCHED_READINGS","???");;\
|
||||
$ret .= '<div style="text-align:left">';;\
|
||||
$ret .= 'last <a title="versions" href="'.InternalVal($name,"MainURL","unknown").'">tasmota</a>-check => '.$lastCheck;;\
|
||||
@ -642,8 +642,9 @@ attr DEVICE stateFormat { my $ret ="";;\
|
||||
$ret .= sprintf("%-32s",$dev);;\
|
||||
$ret .= '</b></a> | ';;\
|
||||
$ret .= '<b style="color:lightgray">';;\
|
||||
$ret .= sprintf("%7s",$old);;\
|
||||
$ret .= '</b> | ';;\
|
||||
$ret .= '<a href="http://'.ReadingsVal($dev,"IPAddress",ReadingsVal($dev,"INFO1_IPAddress","0.0.0.0")).'" target="_blank">';;\
|
||||
$ret .= sprintf("%7s",$old);;\
|
||||
$ret .= '</b></a> | ';;\
|
||||
$ret .= '<a href="https://github.com/arendst/Tasmota/releases/tag/v'.$new.'">';;\
|
||||
$ret .= '<b style="color:red">';;\
|
||||
$ret .= sprintf("%7s",$new);;\
|
||||
@ -667,8 +668,8 @@ attr DEVICE userReadings updatableDevices:MATCHED_READINGS.* {\
|
||||
} else {\
|
||||
my $VERSION = ReadingsVal($name,"latestVersion","unknown");;\
|
||||
my $DATE = ReadingsVal($name,"latestDate","unknown");;\
|
||||
foreach my $dev (devspec2array("TYPE=MQTT[2]?_[D]EVICE:FILTER=INFO1_Version!=")) {\
|
||||
my $version = ReadingsVal($dev,"INFO1_Version","0.0.0");;\
|
||||
foreach my $dev (devspec2array("TYPE=MQTT[2]?_[D]EVICE:FILTER=Version!=,TYPE=MQTT[2]?_[D]EVICE:FILTER=INFO1_Version!=")) {\
|
||||
my $version = ReadingsVal($dev,"Version",ReadingsVal($dev,"INFO1_Version","0.0.0"));;\
|
||||
$version =~ m/([0-9.]*).*/;;\
|
||||
$version = $1;;\
|
||||
if ( AttrVal($name,"updatableDevicesMode","onlyUpdatable") eq "all" || $version ne $VERSION ) {\
|
||||
|
@ -1829,6 +1829,7 @@ name:shellyht
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*shellies.*
|
||||
desc:shellyht using original firmware <br>Just adds stateFormat and icon
|
||||
order:A_16
|
||||
par:DEVNAME;name of this shelly;{ AttrVal("DEVICE","readingList","") =~ m,shellies/([^/]+)/, ? $1 : undef }
|
||||
par:ICON;ICON as set, defaults to temperature_humidity;{ AttrVal("DEVICE","icon","temperature_humidity") }
|
||||
attr DEVICE icon ICON
|
||||
attr DEVICE setList \
|
||||
@ -1843,6 +1844,7 @@ name:shellyflood
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*shellies.*
|
||||
desc:shellyht using original firmware <br>Just adds stateFormat and icon
|
||||
order:A_16a
|
||||
par:DEVNAME;name of this shelly;{ AttrVal("DEVICE","readingList","") =~ m,shellies/([^/]+)/, ? $1 : undef }
|
||||
par:ICON;ICON as set, defaults to humidity;{ AttrVal("DEVICE","icon","humidity") }
|
||||
attr DEVICE icon ICON
|
||||
attr DEVICE setList \
|
||||
|
Loading…
x
Reference in New Issue
Block a user