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>
- attr <name> useUdpBroadcast <>
+ attr <name> useUdpBroadcast <broardcastAdress>