mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +00:00
90_at.pm: set correct state after alignTime (Forum #27970)
git-svn-id: https://svn.fhem.de/fhem/trunk@6797 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0131623f9a
commit
ff15d37641
@ -102,11 +102,11 @@ at_Define($$)
|
|||||||
$hash->{TRIGGERTIME_FMT} = FmtDateTime($nt);
|
$hash->{TRIGGERTIME_FMT} = FmtDateTime($nt);
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer($nt, "at_Exec", $hash, 0);
|
InternalTimer($nt, "at_Exec", $hash, 0);
|
||||||
|
$hash->{NTM} = $ntm if($rel eq "+" || $fn);
|
||||||
|
$hash->{STATE} = AttrVal($name, "disable", undef) ?
|
||||||
|
"disabled" : ("Next: ".FmtTime($nt));
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash->{NTM} = $ntm if($rel eq "+" || $fn);
|
|
||||||
$hash->{STATE} = AttrVal($name, "disable", undef) ?
|
|
||||||
"disabled" : ("Next: ".FmtTime($nt));
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,6 +189,7 @@ at_adjustAlign($$)
|
|||||||
$hash->{TRIGGERTIME} = $ttime;
|
$hash->{TRIGGERTIME} = $ttime;
|
||||||
$hash->{TRIGGERTIME_FMT} = FmtDateTime($ttime);
|
$hash->{TRIGGERTIME_FMT} = FmtDateTime($ttime);
|
||||||
$hash->{STATE} = "Next: " . FmtTime($ttime);
|
$hash->{STATE} = "Next: " . FmtTime($ttime);
|
||||||
|
$hash->{NTM} = FmtTime($ttime);
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user