2
0
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:
jpawlowski 2016-01-17 09:58:10 +00:00
parent d85ffb5f8d
commit 5af31be6bc

View File

@ -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";