mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +00:00
hmInfo:extend configCheck
git-svn-id: https://svn.fhem.de/fhem/trunk@9474 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d18aaa0f0b
commit
61c516844d
@ -5042,6 +5042,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
|
|||||||
|
|
||||||
my $peerId = CUL_HM_name2Id($peerN);
|
my $peerId = CUL_HM_name2Id($peerN);
|
||||||
return "please enter peer" if(!$peerId);
|
return "please enter peer" if(!$peerId);
|
||||||
|
return "peer is not a channel" if(!$defs{$peerN}{helper}{role}{chn});
|
||||||
$peerId .= "01" if( length($peerId) == 6);
|
$peerId .= "01" if( length($peerId) == 6);
|
||||||
|
|
||||||
my @pCh;
|
my @pCh;
|
||||||
|
@ -1118,6 +1118,14 @@ sub HMinfo_GetFn($@) {#########################################################
|
|||||||
push @tlr,"$e: $tr" if($tr);
|
push @tlr,"$e: $tr" if($tr);
|
||||||
}
|
}
|
||||||
$ret .= "\n\n templist mismatch \n ".join("\n ",@tlr) if (@tlr);
|
$ret .= "\n\n templist mismatch \n ".join("\n ",@tlr) if (@tlr);
|
||||||
|
$ret .= "\n\n templateCheck: \n";
|
||||||
|
foreach my $dName (HMinfo_getEntities($opt."v",$filter)){
|
||||||
|
next if (!defined $defs{$dName}{helper}{tmpl});
|
||||||
|
foreach (keys %{$defs{$dName}{helper}{tmpl}}){
|
||||||
|
my ($p,$t)=split(">",$_);
|
||||||
|
$ret .= "\n ".HMinfo_templateChk($dName,$t,$p,split(" ",$defs{$dName}{helper}{tmpl}{$_}));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elsif($cmd eq "templateChk"){##template: see if it applies ------------------
|
elsif($cmd eq "templateChk"){##template: see if it applies ------------------
|
||||||
my $repl;
|
my $repl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user