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>';

View File

@ -15,7 +15,7 @@
<option value="noOneHome"><?php echo $LANG['l_time']?></option>
<option value="atDeviceValue"><?php echo $LANG['l_deviceValue'];?></option>
<option value="noOneHome"><?php echo $LANG['w_noOne'] . $LANG['w_neni'] . $LANG['w_home'];?></option>
<option value="someoOneHome"><?php echo $LANG['w_someOne'] . $LANG['w_is'] . $LANG['w_home'];?></option>
<option value="someOneHome"><?php echo $LANG['w_someOne'] . $LANG['w_is'] . $LANG['w_home'];?></option>
</select>
<input class="input" type="time" name="atTime" id="atTime" disabled/>
<select class="input" name="atDeviceValue" id="atDeviceValue" disabled>