From b312c8d32da3189fcc5b15202e8c50019e44c56c Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Sat, 2 Nov 2013 19:59:09 +0000 Subject: [PATCH] PRESENCE: fixing not working re-initialization in mode lan-bluetooth git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4140 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 2 ++ FHEM/73_PRESENCE.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGED b/CHANGED index 9fbca5996..5e62ae130 100644 --- a/CHANGED +++ b/CHANGED @@ -1,6 +1,8 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. - SVN + - bugfix: PRESENCE: fixing not working re-initialization when + disabled attribute is set to 0 in lan-bluetooth mode - feature: LightScene: added attribute lightSceneParamsToSave for device specific configuration of reading/command pairs used to save/restore device state diff --git a/FHEM/73_PRESENCE.pm b/FHEM/73_PRESENCE.pm index 5493cf28c..56458561b 100755 --- a/FHEM/73_PRESENCE.pm +++ b/FHEM/73_PRESENCE.pm @@ -444,7 +444,7 @@ PRESENCE_DoInit($) my ($hash) = @_; - if( not exists($hash->{helper}{DISABLED}) or exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED} == 1) + if( not exists($hash->{helper}{DISABLED}) or (exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED} == 0)) { readingsSingleUpdate($hash, "state", "active",0); DevIo_SimpleWrite($hash, $hash->{ADDRESS}."|".$hash->{TIMEOUT_NORMAL}."\n", 0);