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:
parent
04d97b4db6
commit
e684e20f67
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user