mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 20:06:18 +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:
parent
8fab1dd647
commit
683ce464dc
@ -422,12 +422,12 @@ PRESENCE_Read($)
|
|||||||
|
|
||||||
if($buf eq "absence")
|
if($buf eq "absence")
|
||||||
{
|
{
|
||||||
readingsBulkUpdate($hash, "state", "absent");
|
readingsBulkUpdate($hash, "state", "absent") unless($hash->{helper}{DISABLED});
|
||||||
readingsBulkUpdate($hash, "presence", "absent");
|
readingsBulkUpdate($hash, "presence", "absent");
|
||||||
}
|
}
|
||||||
elsif($buf =~ /present;(.+?)$/)
|
elsif($buf =~ /present;(.+?)$/)
|
||||||
{
|
{
|
||||||
readingsBulkUpdate($hash, "state", "present");
|
readingsBulkUpdate($hash, "state", "present") unless($hash->{helper}{DISABLED});
|
||||||
readingsBulkUpdate($hash, "presence", "present");
|
readingsBulkUpdate($hash, "presence", "present");
|
||||||
|
|
||||||
if($1 =~ /^(.*);(.+)$/)
|
if($1 =~ /^(.*);(.+)$/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user