50_MOBILEALERTSGW.pm: Added Internal lastseen per gateway

git-svn-id: https://svn.fhem.de/fhem/trunk@29910 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
MarkusF
2025-05-01 15:17:38 +00:00
parent 9da51d1828
commit b116a68d67
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it
- feature: 50_MOBILEALERTSGW: Added Internal lastseen per gateway
- feature: 76_SolarForecast: Version 1.51.5
- feature: 76_SolarForecast: Version 1.51.4
- feature: 76_SolarForecast: Version 1.51.3

View File

@@ -267,7 +267,7 @@ sub MOBILEALERTSGW_Set ($$@) {
Log3 $MA_wname, 5,
"$MA_wname MOBILEALERTSGW: Good Checksum got: 0x"
. sprintf( "%02X", $sum );
my %addvals = ( lastGateway => "Debuginsert");
my %addvals = ( lastGateway => "Debuginsert", "lastseen_Debuginsert" => TimeNow());
Dispatch( $hash, $data, \%addvals );
return undef;
}
@@ -605,7 +605,7 @@ sub MOBILEALERTSGW_DecodeData($$$) {
"$MA_wname MOBILEALERTSGW: Data for $deviceID: "
. unpack( "H*", $data )
if ( $verbose >= 5 );
my %addvals = ( lastGateway => $gwserial);
my %addvals = ( lastGateway => $gwserial, "lastseen_" . $gwserial => TimeNow());
my $found = Dispatch( $defs{$MA_wname}, $data, \%addvals );
}
}