mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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
|
# Add changes at the top of the list. Keep it in ASCII
|
||||||
- SVN
|
- SVN
|
||||||
|
- change: stucture triggers on each change, see event-on-change-reading
|
||||||
- feature: PRESENCE: new mode "function" to use own perl functions for
|
- feature: PRESENCE: new mode "function" to use own perl functions for
|
||||||
presence checks
|
presence checks
|
||||||
- bugfix: fixing not-working FHEM restart, when a PRESENCE check is running
|
- 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
|
Log GetLogLevel($me,5), "Update structure '$me' to $newState" .
|
||||||
my $oldState = ReadingsVal($me, "state", "");
|
" because device $dev->{NAME} has changed";
|
||||||
if($oldState ne $newState) {
|
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});
|
delete($hash->{INNTFY});
|
||||||
undef;
|
undef;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user