mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
PRESENCE: fixing not working re-initialization in mode lan-bluetooth
git-svn-id: https://svn.fhem.de/fhem/trunk@4140 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f31c73ed06
commit
deaf457106
@ -1,6 +1,8 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
- SVN
|
- 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
|
- feature: LightScene: added attribute lightSceneParamsToSave for
|
||||||
device specific configuration of reading/command pairs
|
device specific configuration of reading/command pairs
|
||||||
used to save/restore device state
|
used to save/restore device state
|
||||||
|
@ -444,7 +444,7 @@ PRESENCE_DoInit($)
|
|||||||
|
|
||||||
my ($hash) = @_;
|
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);
|
readingsSingleUpdate($hash, "state", "active",0);
|
||||||
DevIo_SimpleWrite($hash, $hash->{ADDRESS}."|".$hash->{TIMEOUT_NORMAL}."\n", 0);
|
DevIo_SimpleWrite($hash, $hash->{ADDRESS}."|".$hash->{TIMEOUT_NORMAL}."\n", 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user