mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
20_ROOMMATE,20_GUEST: fix variable
git-svn-id: https://svn.fhem.de/fhem/trunk@13837 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b15a175ecc
commit
bed9dd7ffc
@ -334,14 +334,14 @@ m/^[\s\t ]*([A-Za-z\d_\.\-\/]+):([A-Za-z\d_\.\-\/]+)?[\s\t ]*$/
|
||||
)
|
||||
{
|
||||
$d = $1;
|
||||
$reading = $2;
|
||||
$r = $2;
|
||||
}
|
||||
|
||||
my $presenceState =
|
||||
ReadingsVal( $d, $r, ReadingsVal( $d, "state", "" ) );
|
||||
next
|
||||
unless ( $presenceState =~
|
||||
m/^(absent|disappeared|unavailable|disconnected)|(present|appeared|available|connected|)$/i
|
||||
m/^(0|false|absent|disappeared|unavailable|unreachable|disconnected)|(1|true|present|appeared|available|reachable|connected|)$/i
|
||||
);
|
||||
|
||||
$counter->{absent}++ if ($1);
|
||||
|
@ -337,14 +337,14 @@ m/^[\s\t ]*([A-Za-z\d_\.\-\/]+):([A-Za-z\d_\.\-\/]+)?[\s\t ]*$/
|
||||
)
|
||||
{
|
||||
$d = $1;
|
||||
$reading = $2;
|
||||
$r = $2;
|
||||
}
|
||||
|
||||
my $presenceState =
|
||||
ReadingsVal( $d, $r, ReadingsVal( $d, "state", "" ) );
|
||||
next
|
||||
unless ( $presenceState =~
|
||||
m/^(absent|disappeared|unavailable|disconnected)|(present|appeared|available|connected|)$/i
|
||||
m/^(0|false|absent|disappeared|unavailable|unreachable|disconnected)|(1|true|present|appeared|available|reachable|connected|)$/i
|
||||
);
|
||||
|
||||
$counter->{absent}++ if ($1);
|
||||
|
Loading…
Reference in New Issue
Block a user