mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
PRESENCE: fix generating readings when definition is disabled (Forum: #55271)
git-svn-id: https://svn.fhem.de/fhem/trunk@11739 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4fe30a7f0c
commit
29a3c3af96
@ -1,5 +1,6 @@
|
||||
# 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.
|
||||
- bugfix: PRESENCE: fix generating readings when definition is disabled
|
||||
- changed: 49_SSCam: Workaround for problems with SVS version 7.2
|
||||
concerning start recording and PTZ-actions,
|
||||
new attribute "showPassInLog" added, see commandref
|
||||
|
@ -456,7 +456,9 @@ PRESENCE_Read($)
|
||||
DevIo_SimpleWrite($hash, $hash->{ADDRESS}."|".$hash->{TIMEOUT_PRESENT}."\n", 2);
|
||||
}
|
||||
|
||||
PRESENCE_ProcessState($hash, "present") unless($hash->{helper}{DISABLED});
|
||||
unless($hash->{helper}{DISABLED})
|
||||
{
|
||||
PRESENCE_ProcessState($hash, "present");
|
||||
|
||||
if($1 =~ /^(.*);(.+)$/)
|
||||
{
|
||||
@ -468,6 +470,7 @@ PRESENCE_Read($)
|
||||
readingsBulkUpdate($hash, "device_name", $1);
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif($line eq "command accepted")
|
||||
{
|
||||
readingsBulkUpdate($hash, "command_accepted", "yes");
|
||||
|
Loading…
Reference in New Issue
Block a user