mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 23:46: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:
parent
6952a19565
commit
c7f999b4fe
@ -7031,9 +7031,12 @@ sub CUL_HM_ActCheck($) {# perform supervision
|
||||
$actHash->{helper}{$devId}{try} = $actHash->{helper}{$devId}{try}
|
||||
? ($actHash->{helper}{$devId}{try} +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
|
||||
CUL_HM_Set($defs{$devName},$devName,"statusRequest");
|
||||
CUL_HM_Set($defs{$devName},$devName,
|
||||
($cmds =~ m/statusRequest/?"statusRequest"
|
||||
:"getSerial" ));
|
||||
$cntUnkn++; $state = "unknown";
|
||||
}
|
||||
else{
|
||||
|
@ -50,8 +50,7 @@ sub HMinfo_Define($$){#########################################################
|
||||
.",reduced:off"
|
||||
.",motorErr:ok"
|
||||
.",error:none"
|
||||
.",uncertain:no"
|
||||
.",uncertain:yes"
|
||||
.",uncertain:[no|yes],"
|
||||
.",smoke_detect:none"
|
||||
.",cover:closed"
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user