diff --git a/fhem/CHANGED b/fhem/CHANGED index 71db21948..8d4dc4f01 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -324,4 +324,6 @@ - ==DATE== (4.1) - doc: linux.html (private udev-rules, not 50-..., ATTRS) - bugfix: setting devices with "-" in their name did not work - - doc: fhem.pl and commandref.html (notifyon -> notify, correction of examples) + - doc: fhem.pl and commandref.html (notifyon -> notify, correction of examples) + - feature: modify command added + - feature: The "-" in the name is not allowed any more diff --git a/fhem/FHEM/90_at.pm b/fhem/FHEM/90_at.pm index 4c88cacaf..e88dd1d30 100755 --- a/fhem/FHEM/90_at.pm +++ b/fhem/FHEM/90_at.pm @@ -25,7 +25,14 @@ at_Define($$) my ($hash, $def) = @_; my ($name, undef, $tm, $command) = split("[ \t]+", $def, 4); - return "Usage: define at " if(!$command); + if(!$command) { + if($hash->{CMD}) { + $command = $hash->{CMD}; # Called from modify + $hash->{DEF} = "$tm $command"; + } else { + return "Usage: define at "; + } + } return "Wrong timespec, use \"[+][*[{count}]]