2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-14 15:39:12 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@9000 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-07-28 17:12:40 +00:00
parent a3fb7d9171
commit 60e7063d6d

View File

@ -119,9 +119,12 @@ readingsProxy_update($$)
$value = $value_fn if( $value_fn );
}
#readingsSingleUpdate($hash, "state", $value, 1)
readingsSingleUpdate($hash, "state", $value, 0);
DoTrigger( $name, "$value" );
if( AttrVal($name, 'event-on-change-reading', undef ) ) {
readingsSingleUpdate($hash, 'state', $value, 1)
} else {
readingsSingleUpdate($hash, 'state', $value, 0);
DoTrigger( $name, $value );
}
}
sub