mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +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)',
|
tchange => 'sprintf("nextPeriodTemp:%0.1f C", $val/2)',
|
||||||
summeractive => '"summeractive:".($val ? "yes":"no")',
|
summeractive => '"summeractive:".($val ? "yes":"no")',
|
||||||
holidayactive => '"holidayactive:".($val ? "yes":"no")',
|
holidayactive => '"holidayactive:".($val ? "yes":"no")',
|
||||||
|
lastpressedtimestamp => '"lastpressedtimestamp:".($val=~m/^\d{10}$/ ? FmtDateTime($val) : "N/A")',
|
||||||
);
|
);
|
||||||
|
|
||||||
sub
|
sub
|
||||||
@ -260,12 +261,17 @@ FBDECT_ParseHttp($$$)
|
|||||||
my $ain = $h{identifier};
|
my $ain = $h{identifier};
|
||||||
$ain =~ s/[-: ]/_/g;
|
$ain =~ s/[-: ]/_/g;
|
||||||
|
|
||||||
my %ll = (4=>"alarmSensor",
|
my %ll = (
|
||||||
6=>"actuator",
|
0 => "HANFUN",
|
||||||
7=>"powerMeter",
|
4 => "alarmSensor",
|
||||||
8=>"tempSensor",
|
6 => "actuator",
|
||||||
9=>"switch",
|
7 => "powerMeter",
|
||||||
10=>"repeater");
|
8 => "tempSensor",
|
||||||
|
9 => "switch",
|
||||||
|
10 => "repeater",
|
||||||
|
11 => "microphone",
|
||||||
|
13 => "HANFUN2"
|
||||||
|
);
|
||||||
my %ecTxt = (0 => "noError (0)",
|
my %ecTxt = (0 => "noError (0)",
|
||||||
1 => "notMounted (1)",
|
1 => "notMounted (1)",
|
||||||
2 => "valveShortOrBatteryEmpty (2)",
|
2 => "valveShortOrBatteryEmpty (2)",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user