2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

readings update fix

git-svn-id: https://svn.fhem.de/fhem/trunk@4624 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-01-11 17:48:12 +00:00
parent 04d97b4db6
commit e684e20f67

View File

@ -811,7 +811,7 @@ SWAP_updateReadings($$$)
readingsBulkUpdate($hash, lc($endpoint->{name}), $v);
}
my $reading = SWAP_regName($rid,$i,$endpoint);
readingsBulkUpdate($hash, $reading, $value) if( ReadingsVal($name,$reading,"") ne $value );
readingsBulkUpdate($hash, $reading, $value) ;# if( ReadingsVal($name,$reading,"") ne $value );
++$i;
}
readingsBulkUpdate($hash, "state", (substr($data,0,6) eq "000000"?"off":$data)) if( defined($attr{$name}{ProductCode}) && $attr{$name}{ProductCode} eq '0000002200000003' && $reg == 0x0B );