From 970dfe6bfac014ad724d2bb5bf29e21ae095cc57 Mon Sep 17 00:00:00 2001
From: rudolfkoenig <>
Date: Sun, 28 Jun 2020 12:12:52 +0000
Subject: [PATCH] AttrTemplate.pm: show the content of recursive attrTemplates
(Forum #112383)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22294 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
FHEM/AttrTemplate.pm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/FHEM/AttrTemplate.pm b/FHEM/AttrTemplate.pm
index 30f13f651..d07e2b432 100644
--- a/FHEM/AttrTemplate.pm
+++ b/FHEM/AttrTemplate.pm
@@ -156,6 +156,14 @@ AttrTemplate_Help($)
my $ret = "";
$ret = $templates{$n}{desc} if($templates{$n}{desc});
$ret .= "
".join("\n",@{$templates{$n}{cmds}}).""; + + if(AttrVal("global", "showInternalValues", undef)) { + my @atList = grep /set\s.*\sattrTemplate\s/,@{$templates{$n}{cmds}}; + foreach my $at (@atList) { + next if($at !~ m/set\s.*\sattrTemplate\s(.*?) /); + $ret .= "