diff --git a/fhem/FHEM/98_MSwitch.pm b/fhem/FHEM/98_MSwitch.pm
index 224e3b2e3..b1c77c1bb 100644
--- a/fhem/FHEM/98_MSwitch.pm
+++ b/fhem/FHEM/98_MSwitch.pm
@@ -4512,136 +4512,7 @@ MS-HELPdelay
";
- my $controlhtmlalternativ="
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | MS-COMMENTset |
-
-
- |
- MS-NAMESATZ |
- |
- MS-HELPpriority MS-IDSATZ |
-
-
- |
- CMD 1 |
- |
- CMD 2 |
-
-
- |
- |
- |
- |
-
-
- | MS-HELPonoff |
- MS-SET1 |
- |
- MS-SET2 |
-
-
- | MS-HELPcondition |
- MS-COND1 |
- |
- MS-COND2 |
-
-
- |
- MS-CONDCHECK1 |
- |
- MS-CONDCHECK1 |
-
-
- | MS-HELPexit |
- MS-EXEC1 |
- |
- MS-EXEC2 |
-
-
- | MS-HELPtimer |
- MS-DELAYset1 |
- |
- MS-DELAYset2 |
-
-
- |
- |
- |
- |
-
-
-
- | MS-HELPrepeats MS-REPEATset |
-
-
- |
-
-
- | MS-ACTIONSATZ |
-
-
-";
$controlhtml = AttrVal( $Name, 'MSwitch_Develop_Affected', $controlhtml ) ;
#### extrakt ersetzung
@@ -5175,11 +5046,11 @@ $controlhtml=~ s/#/\n/g;
{
$MSTEST1="";
+ ."'type='button' value='test comand' onclick=\"javascript: testcmd('cmdon$nopoint','$devicenamet','cmdonopt$nopoint')\">";
$MSTEST2="";
+ ."'type='button' value='test comand' onclick=\"javascript: testcmd('cmdoff$nopoint','$devicenamet','cmdoffopt$nopoint')\">";
}
}
@@ -6946,9 +6817,10 @@ if ( AttrVal( $Name, 'MSwitch_Mode', 'Notify' ) ne "Dummy" )
}
- function testcmd(field,devicename){
+ function testcmd(field,devicename,opt){
comand = \$(\"[name=\"+field+\"]\").val()
-
+ comand1 = \$(\"[name=\"+opt+\"]\").val()
+ comand =comand+\" \"+comand1;
comand = comand.replace(/\\\$SELF/g,'".$Name."');
if (devicename != 'FreeCmd')
@@ -6956,7 +6828,7 @@ if ( AttrVal( $Name, 'MSwitch_Mode', 'Notify' ) ne "Dummy" )
cmd ='set '+devicename+' '+comand;
FW_cmd(FW_root+'?cmd='+encodeURIComponent(cmd)+'&XHR=1');
FW_okDialog('".$EXECCMD." '+cmd);
- //FW_errmsg(cmd, 5);
+ FW_errmsg(cmd, 5);
}
else{