98_MSwitch.pm:fix event handling

git-svn-id: https://svn.fhem.de/fhem/trunk@17319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Byte09
2018-09-10 18:11:52 +00:00
parent b6ec364985
commit 015099219f

View File

@@ -747,8 +747,8 @@ sub MSwitch_Set($@) {
if ((($cmd eq 'on') || ($cmd eq 'off')) && ($args[0] ne ''))
{
readingsSingleUpdate( $hash, "Parameter", $args[0], 1 );
if ($cmd eq 'on'){$args[0] = "$name:on_with_Parameter:$args[0]";}
if ($cmd eq 'off'){$args[0] = "$name:off_with_Parameter:$args[0]";}
#if ($cmd eq 'on'){$args[0] = "$name:on_with_Parameter:$args[0]";}
#if ($cmd eq 'off'){$args[0] = "$name:off_with_Parameter:$args[0]";}
}
#######################################