2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

98_HMInfo:improve update function - update actiondetector and vccu implicite

git-svn-id: https://svn.fhem.de/fhem/trunk@17311 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2018-09-09 17:14:49 +00:00
parent bb953ab010
commit 1fc8aee772

View File

@ -1,4 +1,5 @@
##############################################
##############################################
# $Id$
package main;
use strict;
@ -233,6 +234,14 @@ sub HMinfo_status($){##########################################################
my %errFltN;
my %err;
if(defined $modules{CUL_HM}{defptr}{"000000"}){ #update action detector
CUL_HM_Set($defs{$modules{CUL_HM}{defptr}{"000000"}{NAME}},
$modules{CUL_HM}{defptr}{"000000"}{NAME},"update");
}
foreach(devspec2array("TYPE=CUL_HM:FILTER=model=CCU-FHEM:FILTER=DEF=......")){
CUL_HM_Set($defs{$_}, $_,"update"); #update all ccu devices
}
foreach (@erro){ #prepare reading filter for error counts
my ($p,@a) = split ":",$_;
$errFlt{$p}{x}=1; # add at least one reading