SomeOneHome Automation Event Fix

This commit is contained in:
JonatanRek
2019-08-26 17:32:54 +02:00
parent 90f1bf58bf
commit 568fd6c59a
2 changed files with 3 additions and 3 deletions

View File

@@ -98,9 +98,9 @@ class AutomationManager{
$membersHome++;
}
}
if ($membersHome == 0 && $automation['executed'] == 0) {
if ($membersHome == 0 && $automation['executed'] == 1) {
$restart = true;
} else if ($membersHome > 0 && $automation['executed'] == 1){
} else if ($membersHome > 0 && $automation['executed'] == 0){
$run = true;
}
/*echo "Someone Home". '<br>';