2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 18:56:03 +00:00

10_CUL_HM: actionDetector for non-battery devices

git-svn-id: https://svn.fhem.de/fhem/trunk@8632 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2015-05-25 09:09:05 +00:00
parent 6952a19565
commit c7f999b4fe
2 changed files with 6 additions and 4 deletions

View File

@ -7031,9 +7031,12 @@ sub CUL_HM_ActCheck($) {# perform supervision
$actHash->{helper}{$devId}{try} = $actHash->{helper}{$devId}{try} $actHash->{helper}{$devId}{try} = $actHash->{helper}{$devId}{try}
? ($actHash->{helper}{$devId}{try} +1) ? ($actHash->{helper}{$devId}{try} +1)
: 1; : 1;
if (CUL_HM_Set($defs{$devName},$devName,"help") =~ m/statusRequest/){ my $cmds = CUL_HM_Set($defs{$devName},$devName,"help");
if ($cmds =~ m/(statusRequest|getSerial)/){
# send statusrequest if possible # send statusrequest if possible
CUL_HM_Set($defs{$devName},$devName,"statusRequest"); CUL_HM_Set($defs{$devName},$devName,
($cmds =~ m/statusRequest/?"statusRequest"
:"getSerial" ));
$cntUnkn++; $state = "unknown"; $cntUnkn++; $state = "unknown";
} }
else{ else{

View File

@ -50,8 +50,7 @@ sub HMinfo_Define($$){#########################################################
.",reduced:off" .",reduced:off"
.",motorErr:ok" .",motorErr:ok"
.",error:none" .",error:none"
.",uncertain:no" .",uncertain:[no|yes],"
.",uncertain:yes"
.",smoke_detect:none" .",smoke_detect:none"
.",cover:closed" .",cover:closed"
; ;