diff --git a/FHEM/90_at.pm b/FHEM/90_at.pm index 8c69735f6..fca3ead15 100755 --- a/FHEM/90_at.pm +++ b/FHEM/90_at.pm @@ -239,7 +239,7 @@ at_Set($@) { my ($hash, @a) = @_; - my %sets = (modifyTimeSpec=>1, inactive=>0, active=>0); + my %sets = (modifyTimeSpec=>1, inactive=>0, active=>0, execNow=>0); my $cmd = join(" ", sort keys %sets); $cmd =~ s/modifyTimeSpec/modifyTimeSpec:time/ if($at_detailFnCalled); $at_detailFnCalled = 0; @@ -267,6 +267,12 @@ at_Set($@) readingsSingleUpdate($hash,"state","Next: ".FmtTime($hash->{TRIGGERTIME}),1) if(!AttrVal($hash->{NAME}, "disable", undef)); return undef; + + } elsif($a[1] eq "execNow") { + my $name = $hash->{NAME}; + my $ret = AnalyzeCommandChain(undef, SemicolonEscape($hash->{COMMAND})); + Log3 $name, 3, "$name: $ret" if($ret); + } } @@ -488,6 +494,9 @@ EOF