diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 731fec76a..5f3cfc10d 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -1801,15 +1801,17 @@ HUEDevice_Parse($$) $hash->{lastupdated} = ReadingsVal( $name, '.lastupdated', '' ) if( !$hash->{lastupdated} ); $hash->{lastupdated_local} = ReadingsVal( $name, '.lastupdated_local', '' ) if( !$hash->{lastupdated_local} ); + substr($hash->{lastupdated},10, 1, '_' ); substr($lastupdated,10, 1, '_' ); my $hlu = SVG_time_to_sec( $hash->{lastupdated} ); my $lu = SVG_time_to_sec( $lastupdated ); return undef if( $hash->{lastupdated} && $hlu <= $lu - #&& !defined($result->{v2_service}) + && !defined($result->{v2_service}) #&& $hash->{lastupdated} eq $lastupdated - && (!$readings{state} || $readings{state} eq ReadingsVal( $name, 'state', '' )) ); + && (!$readings{state} || $readings{state} eq ReadingsVal( $name, 'state', '' )) + ); Log3 $name, 4, "$name: lastupdated: $lastupdated, hash->{lastupdated}: $hash->{lastupdated}, lastupdated_local: $lastupdated_local, offsetUTC: $offset"; #Log3 $name, 5, "$name: ". Dumper $result if($HUEDevice_hasDataDumper);