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

31_HUEDevice.pm: added log messages for lastupdated

git-svn-id: https://svn.fhem.de/fhem/trunk@12415 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-10-23 17:03:57 +00:00
parent 3818615d34
commit ec5aa1b9b7

View File

@ -1193,12 +1193,19 @@ HUEDevice_Parse($$)
if( my $iohash = $hash->{IODev} ) {
substr( $lastupdated, 10, 1, '_' );
my $sec = SVG_time_to_sec($lastupdated);
$sec += $iohash->{helper}{offsetUTC};
if( my $offset = $iohash->{helper}{offsetUTC} ) {
$sec += $offset;
Log3 $name, 4, "$name: offsetUTC: $offset";
}
$lastupdated = FmtDateTime($sec);
}
return undef if( $hash->{lastupdated} && $hash->{lastupdated} eq $lastupdated );
Log3 $name, 4, "$name: lastupdated: $lastupdated, hash->{lastupdated}: $hash->{lastupdated}";
Log3 $name, 5, "$name: ". Dumper $result;
$hash->{lastupdated} = $lastupdated;
$readings{state} = $state->{status} if( defined($state->{status}) );