33_readingsProxy.pm: event-on-change fix. see: http://forum.fhem.de/index.php/topic,39528.0/topicseen.html#msg317183
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9000 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -119,9 +119,12 @@ readingsProxy_update($$)
|
|||||||
$value = $value_fn if( $value_fn );
|
$value = $value_fn if( $value_fn );
|
||||||
}
|
}
|
||||||
|
|
||||||
#readingsSingleUpdate($hash, "state", $value, 1)
|
if( AttrVal($name, 'event-on-change-reading', undef ) ) {
|
||||||
readingsSingleUpdate($hash, "state", $value, 0);
|
readingsSingleUpdate($hash, 'state', $value, 1)
|
||||||
DoTrigger( $name, "$value" );
|
} else {
|
||||||
|
readingsSingleUpdate($hash, 'state', $value, 0);
|
||||||
|
DoTrigger( $name, $value );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub
|
sub
|
||||||
|
|||||||
Reference in New Issue
Block a user