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

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

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 =~ /^(.*);(.+)$/)