diff --git a/fhem/FHEM/90_at.pm b/fhem/FHEM/90_at.pm index 4179f0ada..81b1f038e 100644 --- a/fhem/FHEM/90_at.pm +++ b/fhem/FHEM/90_at.pm @@ -120,9 +120,11 @@ at_Define($$) return undef if($cnt eq "0"); $cnt = 0 if(!$cnt); $cnt--; + delete($hash->{VOLATILE}); # Modify $hash->{REP} = $cnt; } else { $hash->{VOLATILE} = 1; # Write these entries to the statefile + delete($hash->{REP}); # Modify } my $alTime = AttrVal($name, "alignTime", undef);