CUL_HM:correct implementation of Actiondetector at restart

git-svn-id: https://svn.fhem.de/fhem/trunk@22226 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2020-06-22 05:50:12 +00:00
parent 49874fabd8
commit 00af3388a0

View File

@@ -698,7 +698,6 @@ sub CUL_HM_Attr(@) {#################################
my $chk = ($cmd eq "set") ? CUL_HM_AttrCheck($name, $attrName) : ""; my $chk = ($cmd eq "set") ? CUL_HM_AttrCheck($name, $attrName) : "";
my $hash = CUL_HM_name2Hash($name); my $hash = CUL_HM_name2Hash($name);
return $chk if ($chk); return $chk if ($chk);
my $updtReq = 0; my $updtReq = 0;
if ($attrName eq "expert"){#[0,1,2] if ($attrName eq "expert"){#[0,1,2]
$attr{$name}{$attrName} = $attrVal; $attr{$name}{$attrName} = $attrVal;
@@ -6841,7 +6840,8 @@ sub CUL_HM_updtDeviceModel($$) {#change the model for a device - obey overwrite
CommandDelete(undef,CUL_HM_id2Name($_)); CommandDelete(undef,CUL_HM_id2Name($_));
Log3 $name,3,"CUL_HM_update: $name delete channel name: $_"; Log3 $name,3,"CUL_HM_update: $name delete channel name: $_";
} }
CUL_HM_ActAdd($hash->{DEF},AttrVal($name,"actCycle", $culHmModel->{$mId}{cyc}))if ($culHmModel->{$mId}{cyc}); my $CycTime = AttrVal($name,"actCycle", $culHmModel->{$mId}{cyc});
CUL_HM_ActAdd($hash->{DEF},$CycTime)if ($CycTime);
CUL_HM_queueUpdtCfg($name); CUL_HM_queueUpdtCfg($name);
} }
} }