2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

10_FBDECT.pm: add lastpressedtimestamp (Forum #94700)

git-svn-id: https://svn.fhem.de/fhem/trunk@18482 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-02-02 09:52:57 +00:00
parent 4be422203d
commit e3680139be

View File

@ -245,6 +245,7 @@ my %fbhttp_readings = (
tchange => 'sprintf("nextPeriodTemp:%0.1f C", $val/2)',
summeractive => '"summeractive:".($val ? "yes":"no")',
holidayactive => '"holidayactive:".($val ? "yes":"no")',
lastpressedtimestamp => '"lastpressedtimestamp:".($val=~m/^\d{10}$/ ? FmtDateTime($val) : "N/A")',
);
sub
@ -260,12 +261,17 @@ FBDECT_ParseHttp($$$)
my $ain = $h{identifier};
$ain =~ s/[-: ]/_/g;
my %ll = (4=>"alarmSensor",
6=>"actuator",
7=>"powerMeter",
8=>"tempSensor",
9=>"switch",
10=>"repeater");
my %ll = (
0 => "HANFUN",
4 => "alarmSensor",
6 => "actuator",
7 => "powerMeter",
8 => "tempSensor",
9 => "switch",
10 => "repeater",
11 => "microphone",
13 => "HANFUN2"
);
my %ecTxt = (0 => "noError (0)",
1 => "notMounted (1)",
2 => "valveShortOrBatteryEmpty (2)",