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:
@@ -1193,12 +1193,19 @@ HUEDevice_Parse($$)
|
|||||||
if( my $iohash = $hash->{IODev} ) {
|
if( my $iohash = $hash->{IODev} ) {
|
||||||
substr( $lastupdated, 10, 1, '_' );
|
substr( $lastupdated, 10, 1, '_' );
|
||||||
my $sec = SVG_time_to_sec($lastupdated);
|
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);
|
$lastupdated = FmtDateTime($sec);
|
||||||
}
|
}
|
||||||
|
|
||||||
return undef if( $hash->{lastupdated} && $hash->{lastupdated} eq $lastupdated );
|
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;
|
$hash->{lastupdated} = $lastupdated;
|
||||||
|
|
||||||
$readings{state} = $state->{status} if( defined($state->{status}) );
|
$readings{state} = $state->{status} if( defined($state->{status}) );
|
||||||
|
|||||||
Reference in New Issue
Block a user