CUL_HM: start msgs to actor after peerChan autmatically

git-svn-id: https://svn.fhem.de/fhem/trunk@12472 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2016-10-30 15:38:10 +00:00
parent 5894a9a2dd
commit a3d3ba9b64
2 changed files with 11 additions and 12 deletions

View File

@ -2985,7 +2985,6 @@ sub CUL_HM_parseCommon(@){#####################################################
$response = $cipher->encrypt(substr($response, 0, 16)); $response = $cipher->encrypt(substr($response, 0, 16));
CUL_HM_SndCmd($mhp->{devH}, $mhp->{mNo}.$mhp->{mFlg}.'03'.CUL_HM_IoId($mhp->{devH}).$mhp->{src}.unpack("H*", $response)); CUL_HM_SndCmd($mhp->{devH}, $mhp->{mNo}.$mhp->{mFlg}.'03'.CUL_HM_IoId($mhp->{devH}).$mhp->{src}.unpack("H*", $response));
$reply = "AES"; $reply = "AES";
} }
} }
@ -5815,7 +5814,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
} }
CUL_HM_qAutoRead($peerHash->{NAME},3); CUL_HM_qAutoRead($peerHash->{NAME},3);
} }
$devHash = $peerHash; # Exchange the hash, as the switch is always alive. $devHash = CUL_HM_getDeviceHash($peerHash); # Exchange the hash, as the switch is always alive.
} }
} }
return ("",1) if ($target && $target eq "remote");#Nothing for actor return ("",1) if ($target && $target eq "remote");#Nothing for actor
@ -6461,7 +6460,7 @@ sub CUL_HM_responseSetup($$) {#store all we need to handle the response
CUL_HM_respWaitSu ($hash,"cmd:=$cmd","mNo:=$mNo","reSent:=$rss"); CUL_HM_respWaitSu ($hash,"cmd:=$cmd","mNo:=$mNo","reSent:=$rss");
} }
CUL_HM_protState($hash,"CMDs_processing..."); CUL_HM_protState($hash,"CMDs_processing...");#if($mTp ne '03');
} }
else{# no answer expected else{# no answer expected
if($hash->{cmdStack} && scalar @{$hash->{cmdStack}}){ if($hash->{cmdStack} && scalar @{$hash->{cmdStack}}){

View File

@ -68,7 +68,7 @@ sub HMinfo_Define($$){#########################################################
$hash->{nb}{cnt} = 0; $hash->{nb}{cnt} = 0;
return; return;
} }
sub HMinfo_Undef($$){######################################################### sub HMinfo_Undef($$){##########################################################
my ($hash, $name) = @_; my ($hash, $name) = @_;
return undef; return undef;
} }
@ -186,7 +186,7 @@ sub HMinfo_Attr(@) {###########################################################
return; return;
} }
sub HMinfo_Notify(@){################################# sub HMinfo_Notify(@){##########################################################
my ($ntfy, $dev) = @_; my ($ntfy, $dev) = @_;
return "" if ($dev->{NAME} ne "global"); return "" if ($dev->{NAME} ne "global");
@ -892,7 +892,7 @@ sub HMinfo_tempListTmplView() { ###############################################
$ret .= "\ndevices not using tempList templates:\n => " .join("\n => ",@dWoTmpl) if (@dWoTmpl); $ret .= "\ndevices not using tempList templates:\n => " .join("\n => ",@dWoTmpl) if (@dWoTmpl);
return $ret; return $ret;
} }
sub HMinfo_tempListDefFn(@) { ########################################### sub HMinfo_tempListDefFn(@) { #################################################
#return Default filename for tempList #return Default filename for tempList
my ($fn) = shift; my ($fn) = shift;
$fn = "" if (!defined $fn); $fn = "" if (!defined $fn);
@ -906,7 +906,7 @@ sub HMinfo_tempListDefFn(@) { ###########################################
} }
return $ret.$fn; return $ret.$fn;
} }
sub HMinfo_listOfTempTemplates() { ########################################### sub HMinfo_listOfTempTemplates() { ############################################
# search all entries in tempListFile # search all entries in tempListFile
my ($n) =devspec2array("TYPE=HMinfo"); my ($n) =devspec2array("TYPE=HMinfo");
my $dir = AttrVal($n,"configDir","$attr{global}{modpath}/")."/"; #no dir? add defDir my $dir = AttrVal($n,"configDir","$attr{global}{modpath}/")."/"; #no dir? add defDir
@ -1719,7 +1719,7 @@ sub HMInfo_help(){ ############################################################
; ;
} }
sub HMinfo_verifyConfig($) {################################################## sub HMinfo_verifyConfig($) {###################################################
my ($param) = @_; my ($param) = @_;
my ($id,$fName) = split ",",$param; my ($id,$fName) = split ",",$param;
HMinfo_purgeConfig($param); HMinfo_purgeConfig($param);