Time base automation restart fix
This commit is contained in:
parent
342f433cf7
commit
9d098217fb
@ -65,13 +65,13 @@ class AutomationManager{
|
|||||||
$onValue = $today->setTime($onValue[0], $onValue[1]);
|
$onValue = $today->setTime($onValue[0], $onValue[1]);
|
||||||
$value = $today->getTimestamp();
|
$value = $today->getTimestamp();
|
||||||
}
|
}
|
||||||
if (time() > $value){
|
|
||||||
if ($automation['executed'] == 0){
|
if (time() > $value && $automation['executed'] == 0){
|
||||||
$run = true;
|
$run = true;
|
||||||
} else if (time() < $value && $automation['executed'] = 1) { //recovery realowing of automation
|
} else if (time() < $value && $automation['executed'] = 1) { //recovery realowing of automation
|
||||||
$restart = true;
|
$restart = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($onValue['type'] == 'outHome') {
|
} else if ($onValue['type'] == 'outHome') {
|
||||||
|
|
||||||
} else if ($onValue['type'] == 'inHome') {
|
} else if ($onValue['type'] == 'inHome') {
|
||||||
|
Loading…
Reference in New Issue
Block a user