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:
parent
4be422203d
commit
e3680139be
@ -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)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user