2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-30 12:07:09 +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:
justme-1968 2016-11-15 09:46:35 +00:00
parent c6ef486ca8
commit 383e998aea

View File

@ -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);