diff --git a/fhem/CHANGED b/fhem/CHANGED index a2e1c412a..35681f428 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,6 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. - SVN + - feature: disabledForIntervals attribute added for at/notify/watchdog - feature: jsonlist2 added, jsonlist is deprecated. - change: renamed 98_configDB to 98_configDBwrap - feature: DbLog: Added new function : ReadingsVal/ReadingsTimestamp diff --git a/fhem/FHEM/90_at.pm b/fhem/FHEM/90_at.pm index e6a2db7e5..9c8f5f09b 100755 --- a/fhem/FHEM/90_at.pm +++ b/fhem/FHEM/90_at.pm @@ -16,7 +16,8 @@ at_Initialize($) $hash->{UndefFn} = "at_Undef"; $hash->{AttrFn} = "at_Attr"; $hash->{StateFn} = "at_State"; - $hash->{AttrList} = "disable:0,1 skip_next:0,1 alignTime"; + $hash->{AttrList} = "disable:0,1 disabledForIntervals ". + "skip_next:0,1 alignTime"; } @@ -119,7 +120,7 @@ at_Exec($) Log3 $name, 5, "exec at command $name"; my $skip = AttrVal($name, "skip_next", undef); - my $disable = AttrVal($name, "disable", undef); + my $disable = IsDisabled($name); delete $attr{$name}{skip_next} if($skip); my (undef, $command) = split("[ \t]+", $hash->{DEF}, 2); @@ -330,6 +331,17 @@ at_State($$$$) If applied to an at, the command will not be executed, but the next time will be computed.
+ +
  • disabledForIntervals HH:MM-HH:MM HH:MM-HH-MM...
    + Space separated list of HH:MM tupels. If the current time is between + the two time specifications, the current device is disabled. Instead of + HH:MM you can also specify HH or HH:MM:SS. To specify an interval + spawning midnight, you have to specify two intervals, e.g.: + +

  • +
  • skip_next
    Used for at commands: skip the execution of the command the next @@ -457,11 +469,23 @@ at_State($$$$)