diff --git a/fhem/FHEM/36_PCA301.pm b/fhem/FHEM/36_PCA301.pm index f2a4f8ee9..8adcab510 100644 --- a/fhem/FHEM/36_PCA301.pm +++ b/fhem/FHEM/36_PCA301.pm @@ -233,7 +233,7 @@ PCA301_Parse($$) my $consumption = ($bytes[8]*256 + $bytes[9]) / 100.0; my $state = $state; $state = $power if( $readonly ); readingsBeginUpdate($rhash); - readingsBulkUpdate($rhash, "power", $power) if( $data != 0x00 ); + readingsBulkUpdate($rhash, "power", $power) if( $data != 0x00 || ReadingsVal($rname,"power",0) ); readingsBulkUpdate($rhash, "consumption", $consumption) if( $data != 0x00 ); readingsBulkUpdate($rhash, "state", $state) if( Value($rname) ne $state ); readingsEndUpdate($rhash,1);