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

10_CUL_HM:prevent early definition of ActionDetector

git-svn-id: https://svn.fhem.de/fhem/trunk@19889 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2019-07-23 05:59:50 +00:00
parent 3f6cdf9851
commit ce378b687e

View File

@ -547,7 +547,6 @@ sub CUL_HM_updateConfig($){##########################
CUL_HM_complConfig($name);
}
delete $modules{CUL_HM}{helper}{updtCfgLst};
}
sub CUL_HM_Define($$) {##############################
my ($hash, $def) = @_;
@ -9163,7 +9162,7 @@ sub CUL_HM_dimLog($) {# dimmer readings - support virtual chan - unused so far
# that period.
# ActionDetector will use the fixed HMid 000000
sub CUL_HM_ActGetCreateHash() {# get ActionDetector - create if necessary
if (!$modules{CUL_HM}{defptr}{"000000"}){
if (!$modules{CUL_HM}{defptr}{"000000"} && $init_done){
CommandDefine(undef,"ActionDetector CUL_HM 000000");
$attr{ActionDetector}{actCycle} = 600;
$attr{ActionDetector}{"event-on-change-reading"} = ".*";