2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 16:56:04 +00:00

PRESENCE: display right state for disabled lan-bluetooth device after FHEM startup

git-svn-id: https://svn.fhem.de/fhem/trunk@8638 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2015-05-26 19:34:04 +00:00
parent 8fab1dd647
commit 683ce464dc

View File

@ -422,12 +422,12 @@ PRESENCE_Read($)
if($buf eq "absence")
{
readingsBulkUpdate($hash, "state", "absent");
readingsBulkUpdate($hash, "state", "absent") unless($hash->{helper}{DISABLED});
readingsBulkUpdate($hash, "presence", "absent");
}
elsif($buf =~ /present;(.+?)$/)
{
readingsBulkUpdate($hash, "state", "present");
readingsBulkUpdate($hash, "state", "present") unless($hash->{helper}{DISABLED});
readingsBulkUpdate($hash, "presence", "present");
if($1 =~ /^(.*);(.+)$/)