2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

10_FBDECT.pm: fix lastpressedtimestamp issues (Forum #119693)

git-svn-id: https://svn.fhem.de/fhem/trunk@24009 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-03-19 17:11:50 +00:00
parent d77b3fc8f0
commit eb20006129

View File

@ -452,7 +452,7 @@ FBDECT_ParseHttp($$$)
my ($txt,$h,$ln) = (@_);
$txt =~ s#<([^/\s>]+?)[^/]*?>(.*?)</\g1>#
my ($n,$c) = ($1,$2);
$ln = makeReadingName($1) if($n eq "name" && $c =~ m/: (.*)$/);
$ln = makeReadingName($1) if($n eq "name" && $c =~ m/:\s*([^\s]*)$/);
if($n eq "lastpressedtimestamp" && $ln) {
$h->{"${n}_$ln"} = ($c =~ m/^\d{10}$/ ? FmtDateTime($c) : "N/A");
}