2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 01:14:19 +00:00

CUL_HM: powerOn detection rework

git-svn-id: https://svn.fhem.de/fhem/trunk@9169 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2015-08-30 14:15:55 +00:00
parent 132d2b09ad
commit e736075f74

View File

@ -3057,9 +3057,9 @@ sub CUL_HM_parseCommon(@){#####################################################
$ret = "STATresp";
}
else{
if ($mhp->{chn} eq "00"
if ($mhp->{chn} == 0
|| ( $mhp->{mNo} eq "00"
&& $mhp->{chn} eq "01"
&& $mhp->{chn} == 1
&& $mhp->{devH}{helper}{HM_CMDNR} < 250)){# this is power on
CUL_HM_qStateUpdatIfEnab($mhp->{devN});
CUL_HM_qAutoRead($mhp->{devN},2);