From 4804dda5d4d1122c8dd9903b1e9b9e56e2bc75f3 Mon Sep 17 00:00:00 2001
From: betateilchen <>
Date: Fri, 20 Feb 2015 17:40:25 +0000
Subject: [PATCH] 98_help.pm: support help for internal commands
attributes
command
commands
devspec
global
perl
git-svn-id: https://svn.fhem.de/fhem/trunk@8046 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/98_help.pm | 7 ++++---
fhem/docs/commandref_frame.html | 21 +++++++--------------
fhem/docs/commandref_frame_DE.html | 13 +++++++------
3 files changed, 18 insertions(+), 23 deletions(-)
diff --git a/fhem/FHEM/98_help.pm b/fhem/FHEM/98_help.pm
index 07cd8e921..6d50fc04c 100644
--- a/fhem/FHEM/98_help.pm
+++ b/fhem/FHEM/98_help.pm
@@ -22,11 +22,12 @@ sub CommandHelp {
if($mod) {
+ my $internals = "attributes command commands devspec global perl";
$mod = lc($mod);
my $modPath = AttrVal('global','modpath','.');
my $output = "";
- if($mod ne 'global') {
+ if($internals !~ m/$mod/) {
my %mods;
my @modDir = ("$modPath/FHEM");
@@ -66,9 +67,9 @@ sub CommandHelp {
return $err if $err;
foreach my $l (@text) {
- if($l =~ m/name=.global./) {
+ if($l =~ m/name=\"$mod\"/) {
$skip = 0;
- } elsif($l =~ m/^
@@ -273,6 +274,7 @@ A line ending with \ will be concatenated with the next one, so long lines
(e.g. webpgm2) make editing of multiline commands transparent for you (i.e. there is no need for \) .
+
@@ -325,6 +327,7 @@ A line ending with \ will be concatenated with the next one, so long lines
structure device.
+
@@ -628,10 +631,11 @@ The following local attributes are used by a wider range of devices:
Attribute "disable" must be offered by the corresponding module
+
-
+
+ @@ -336,7 +338,7 @@ Zeilen erstreckende Befehle, indem man keine \ am Zeilenende eingeben muss. bitte den Abschnitt zu structure. - + @@ -649,13 +651,10 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
attr <device> disable toggle