diff --git a/class/AutomationManager.php b/class/AutomationManager.php index bb76a40..7d029fb 100644 --- a/class/AutomationManager.php +++ b/class/AutomationManager.php @@ -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". '
'; diff --git a/templates/part/automationCreate.phtml b/templates/part/automationCreate.phtml index 5a37fe7..374667e 100644 --- a/templates/part/automationCreate.phtml +++ b/templates/part/automationCreate.phtml @@ -15,7 +15,7 @@ - +