diff --git a/fhem/FHEM/98_WOL.pm b/fhem/FHEM/98_WOL.pm index 9d2091698..756afa825 100644 --- a/fhem/FHEM/98_WOL.pm +++ b/fhem/FHEM/98_WOL.pm @@ -28,6 +28,11 @@ use Time::HiRes qw(gettimeofday); ################################################################################ sub WOL_Initialize($) { my ($hash) = @_; + + if(!$modules{Twilight}{LOADED} && -f "$attr{global}{modpath}/FHEM/59_Twilight.pm") { + my $ret = CommandReload(undef, "59_Twilight"); + Log3 undef, 1, $ret if($ret); + } $hash->{SetFn} = "WOL_Set"; $hash->{DefFn} = "WOL_Define"; @@ -417,10 +422,10 @@ So, for example a Buffalo NAS can be kept awake. 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 By using 0 as parametr for interval you can switch off checking the device.
  • -
  • attr <name> useUdpBroadcast <> +
    defines the time between two checks by a ping if state of <name> is on. By using 0 as parameter for interval you can switch off checking the device.
  • +
  • attr <name> useUdpBroadcast <broardcastAdress>
    When using UDP then the magic packet can be send to one of the broardcastAdresses (x.x.x.255, x.x.255.255, x.255.255.255) instead of the target host address. - Try using this, when you are trying to wake up a machine in your own subnet and the wakekup with the target adress is instable or doesn't work.
  • + Try using this, when you want to wake up a machine in your own subnet and the wakekup with the target adress is instable or doesn't work.