From fb48bd786044ca14844b253294088fb6d2e9cd87 Mon Sep 17 00:00:00 2001 From: dietmar63 <> Date: Thu, 13 Feb 2014 18:21:38 +0000 Subject: [PATCH] - no WOL packet after shutdown command - dokumentation improved git-svn-id: https://svn.fhem.de/fhem/trunk@4911 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_WOL.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/98_WOL.pm b/fhem/FHEM/98_WOL.pm index 81e75928a..f0168894b 100644 --- a/fhem/FHEM/98_WOL.pm +++ b/fhem/FHEM/98_WOL.pm @@ -54,11 +54,11 @@ sub WOL_Set($@) { if ($cmd eq "") { Log3 $hash, 3, "No shutdown command given (see shutdownCmd attribute)!"; } else { -# qx ($cmd); $cmd = SemicolonEscape($cmd); Log3 $hash, 3, $mod."shutdownCmd: $cmd executed"; my $ret = AnalyzeCommandChain(undef, $cmd); Log3 ($hash, 3, $ret) if($ret); + return undef; } } elsif ($v eq "refresh") { ; @@ -297,9 +297,9 @@ So, for example a Buffalo NAS can be kept awake.

Examples:
-    shutdownCmd    set lamp on                            # fhem command
-    shutdownCmd    { Log 1, "Teatime" }                   # Perl command
-    shutdownCmd    "/bin/echo "Teatime" > /dev/console"   # shell command
+    attr wol shutdownCmd    set lamp on                            # fhem command
+    attr wol shutdownCmd    { Log 1, "Teatime" }                   # Perl command
+    attr wol shutdownCmd    "/bin/echo "Teatime" > /dev/console"   # shell command
     
  • attr <name> interval <seconds>
    defines the time between two checks by a ping if state of <name> is on