mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +00:00
10_CUL_HM:update description, ActionDetector increase attempts for autoTry (status-request) to 3 tries.
git-svn-id: https://svn.fhem.de/fhem/trunk@17532 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f2fb24ecbc
commit
d76ee00afa
@ -3245,7 +3245,6 @@ sub CUL_HM_parseCommon(@){#####################################################
|
|||||||
$paired = 1;
|
$paired = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($paired == 0 && CUL_HM_getRxType($mhp->{devH}) & 0x14){#no pair -send config?
|
if($paired == 0 && CUL_HM_getRxType($mhp->{devH}) & 0x14){#no pair -send config?
|
||||||
CUL_HM_appFromQ($mhp->{devN},"cf"); # stack cmds if waiting
|
CUL_HM_appFromQ($mhp->{devN},"cf"); # stack cmds if waiting
|
||||||
my $ioId = CUL_HM_h2IoId($mhp->{devH}{IODev});
|
my $ioId = CUL_HM_h2IoId($mhp->{devH}{IODev});
|
||||||
@ -3285,7 +3284,7 @@ sub CUL_HM_parseCommon(@){#####################################################
|
|||||||
|
|
||||||
$_ = '00000000' foreach (grep /^000000/ ,@peers);#correct bad term(6 chars) from rain sens)
|
$_ = '00000000' foreach (grep /^000000/ ,@peers);#correct bad term(6 chars) from rain sens)
|
||||||
$_ .= '0x' foreach (grep /^......$/,@peers);#if channel is unknown we assume at least a device
|
$_ .= '0x' foreach (grep /^......$/,@peers);#if channel is unknown we assume at least a device
|
||||||
$chnhash->{helper}{peerIDsRaw}.= ",".join",",@peers;
|
$chnhash->{helper}{peerIDsRaw} .= ",".join(",",@peers);
|
||||||
|
|
||||||
CUL_HM_ID2PeerList ($chnName,$_,1) foreach (@peers);
|
CUL_HM_ID2PeerList ($chnName,$_,1) foreach (@peers);
|
||||||
if (grep /00000000/,@peers) {# last entry, peerList is complete
|
if (grep /00000000/,@peers) {# last entry, peerList is complete
|
||||||
@ -8729,7 +8728,6 @@ sub CUL_HM_ActCheck($) {# perform supervision
|
|||||||
my @event;
|
my @event;
|
||||||
my ($cntUnkn,$cntAliv,$cntDead,$cnt_Off) =(0,0,0,0);
|
my ($cntUnkn,$cntAliv,$cntDead,$cnt_Off) =(0,0,0,0);
|
||||||
my $autoTry = CUL_HM_getAttrInt($actName,"actAutoTry",0);
|
my $autoTry = CUL_HM_getAttrInt($actName,"actAutoTry",0);
|
||||||
|
|
||||||
foreach my $devId (split(",",$peerIDs)){
|
foreach my $devId (split(",",$peerIDs)){
|
||||||
next if (!$devId);
|
next if (!$devId);
|
||||||
my $devName = CUL_HM_id2Name($devId);
|
my $devName = CUL_HM_id2Name($devId);
|
||||||
@ -8759,7 +8757,7 @@ sub CUL_HM_ActCheck($) {# perform supervision
|
|||||||
|| $tSince gt $tLast){ #no message received in window
|
|| $tSince gt $tLast){ #no message received in window
|
||||||
if ($actHash->{helper}{$devId}{start} lt $tSince){
|
if ($actHash->{helper}{$devId}{start} lt $tSince){
|
||||||
if($autoTry) { #try to send a statusRequest?
|
if($autoTry) { #try to send a statusRequest?
|
||||||
if (!$actHash->{helper}{$devId}{try} || $actHash->{helper}{$devId}{try} < 2){
|
if (!$actHash->{helper}{$devId}{try} || $actHash->{helper}{$devId}{try} < 4){
|
||||||
$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;
|
||||||
@ -9473,7 +9471,7 @@ sub CUL_HM_reglUsed($) {# provide data for HMinfo
|
|||||||
|
|
||||||
my @pNames;
|
my @pNames;
|
||||||
push @pNames,CUL_HM_peerChName($_,$devId)
|
push @pNames,CUL_HM_peerChName($_,$devId)
|
||||||
foreach (grep !/00000000/,split(",",AttrVal($name,"peerIDs","")));
|
foreach (grep !/(00000000|x)/,split(",",AttrVal($name,"peerIDs","")));#dont check 'x' peers
|
||||||
|
|
||||||
my @lsNo;
|
my @lsNo;
|
||||||
my $mId = CUL_HM_getMId($hash);
|
my $mId = CUL_HM_getMId($hash);
|
||||||
@ -9999,7 +9997,7 @@ sub CUL_HM_tempListTmpl(@) { ##################################################
|
|||||||
set myChannel peerBulk 12345601 unset # remove peer 123456 channel 01<br>
|
set myChannel peerBulk 12345601 unset # remove peer 123456 channel 01<br>
|
||||||
</code></ul>
|
</code></ul>
|
||||||
</li>
|
</li>
|
||||||
<li><B>regBulk <reg List>:<peer> <addr1:data1> <addr2:data2>...</B><a name="CUL_HMregBulk"></a><br>
|
<li><B>regBulk <reg List>.<peer> <addr1:data1> <addr2:data2>...</B><a name="CUL_HMregBulk"></a><br>
|
||||||
This command will replace the former regRaw. It allows to set register
|
This command will replace the former regRaw. It allows to set register
|
||||||
in raw format. Its main purpose is to restore a complete register list
|
in raw format. Its main purpose is to restore a complete register list
|
||||||
to values secured before. <br>
|
to values secured before. <br>
|
||||||
@ -11423,7 +11421,7 @@ sub CUL_HM_tempListTmpl(@) { ##################################################
|
|||||||
set myChannel peerBulk 12345601 unset # entferne Peer 123456 Kanal 01<br>
|
set myChannel peerBulk 12345601 unset # entferne Peer 123456 Kanal 01<br>
|
||||||
</code></ul>
|
</code></ul>
|
||||||
</li>
|
</li>
|
||||||
<li><B>regBulk <reg List>:<peer> <addr1:data1> <addr2:data2>...</B><a name="CUL_HMregBulk"></a><br>
|
<li><B>regBulk <reg List>.<peer> <addr1:data1> <addr2:data2>...</B><a name="CUL_HMregBulk"></a><br>
|
||||||
Dieser Befehl ersetzt das bisherige regRaw. Er erlaubt Register mit Rohdaten zu
|
Dieser Befehl ersetzt das bisherige regRaw. Er erlaubt Register mit Rohdaten zu
|
||||||
beschreiben. Hauptzweck ist das komplette Wiederherstellen eines zuvor gesicherten
|
beschreiben. Hauptzweck ist das komplette Wiederherstellen eines zuvor gesicherten
|
||||||
Registers. <br>
|
Registers. <br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user