mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
trigger on each change, see event-on-change-reading for the old behaviour
git-svn-id: https://svn.fhem.de/fhem/trunk@3086 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2b1fa63986
commit
6d031a8be4
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII
|
||||
- SVN
|
||||
- change: stucture triggers on each change, see event-on-change-reading
|
||||
- feature: PRESENCE: new mode "function" to use own perl functions for
|
||||
presence checks
|
||||
- bugfix: fixing not-working FHEM restart, when a PRESENCE check is running
|
||||
|
@ -252,13 +252,10 @@ sub structure_Notify($$)
|
||||
|
||||
}
|
||||
|
||||
#eigenen Status jetzt setzen, nur wenn abweichend
|
||||
my $oldState = ReadingsVal($me, "state", "");
|
||||
if($oldState ne $newState) {
|
||||
Log GetLogLevel($me,5), "Update structure '$me' to $newState" .
|
||||
" because device $dev->{NAME} has changed";
|
||||
readingsSingleUpdate($hash, "state", $newState, 1);
|
||||
}
|
||||
Log GetLogLevel($me,5), "Update structure '$me' to $newState" .
|
||||
" because device $dev->{NAME} has changed";
|
||||
readingsSingleUpdate($hash, "state", $newState, 1);
|
||||
|
||||
delete($hash->{INNTFY});
|
||||
undef;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user