mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
70_ENIGMA2: fix presence reading
git-svn-id: https://svn.fhem.de/fhem/trunk@10550 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d85ffb5f8d
commit
5af31be6bc
@ -1002,7 +1002,7 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
||||
|
||||
$presence = "absent";
|
||||
readingsBulkUpdate( $hash, "presence", $presence )
|
||||
if ( readingsBulkUpdate( $hash, "presence", "" ) ne $presence );
|
||||
if ( ReadingsVal( $name, "presence", "" ) ne $presence );
|
||||
}
|
||||
}
|
||||
|
||||
@ -1010,7 +1010,7 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
||||
elsif ($data) {
|
||||
$presence = "present";
|
||||
readingsBulkUpdate( $hash, "presence", $presence )
|
||||
if ( readingsBulkUpdate( $hash, "presence", "" ) ne $presence );
|
||||
if ( ReadingsVal( $name, "presence", "" ) ne $presence );
|
||||
|
||||
if ( !defined($cmd) || $cmd eq "" ) {
|
||||
Log3 $name, 4, "ENIGMA2 $name: RCV $service";
|
||||
|
Loading…
x
Reference in New Issue
Block a user