mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-30 05:57:08 +00:00
33_readingsProxy.pm: also check for event-on-update-reading
git-svn-id: https://svn.fhem.de/fhem/trunk@12581 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c6ef486ca8
commit
383e998aea
@ -120,7 +120,7 @@ readingsProxy_update($$)
|
||||
$value = $value_fn if( $value_fn );
|
||||
}
|
||||
|
||||
if( AttrVal($name, 'event-on-change-reading', undef ) ) {
|
||||
if( AttrVal($name, 'event-on-change-reading', undef ) || AttrVal($name, 'event-on-update-reading', undef ) ) {
|
||||
readingsSingleUpdate($hash, 'state', $value, 1)
|
||||
} else {
|
||||
readingsSingleUpdate($hash, 'state', $value, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user