correct hash comparison

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2617 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2013-01-31 18:31:13 +00:00
parent bb735f23fe
commit f9cbf8b17b

View File

@@ -919,7 +919,7 @@ CUL_HM_Parse($$)
}
elsif ($msgType eq "41"){ #Alarm detected
my ($No,$state) = (substr($p,2,2),substr($p,4,2));
if($dhash && $dhash ne $sHash){ # update source (ID is reported in $dst...)
if($dhash && $dname ne $name){ # update source (ID is reported in $dst...)
if (!$dhash->{helper}{alarmNo} || $dhash->{helper}{alarmNo} ne $No){
$dhash->{helper}{alarmNo} = $No;
readingsSingleUpdate($dhash,'state',(($state eq "01")?"off":"smoke-Alarm"),1);