2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-05 08:20:23 +00:00

10_FBDECT.pm: fix DECT440 buttons (Forum #118303)

git-svn-id: https://svn.fhem.de/fhem/trunk@24127 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-04-02 15:56:06 +00:00
parent df3ca17d0e
commit ad8061392f

View File

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