SomeOneHome Automation Event Fix
This commit is contained in:
parent
90f1bf58bf
commit
568fd6c59a
@ -98,9 +98,9 @@ class AutomationManager{
|
|||||||
$membersHome++;
|
$membersHome++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($membersHome == 0 && $automation['executed'] == 0) {
|
if ($membersHome == 0 && $automation['executed'] == 1) {
|
||||||
$restart = true;
|
$restart = true;
|
||||||
} else if ($membersHome > 0 && $automation['executed'] == 1){
|
} else if ($membersHome > 0 && $automation['executed'] == 0){
|
||||||
$run = true;
|
$run = true;
|
||||||
}
|
}
|
||||||
/*echo "Someone Home". '<br>';
|
/*echo "Someone Home". '<br>';
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<option value="noOneHome"><?php echo $LANG['l_time']?></option>
|
<option value="noOneHome"><?php echo $LANG['l_time']?></option>
|
||||||
<option value="atDeviceValue"><?php echo $LANG['l_deviceValue'];?></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="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>
|
</select>
|
||||||
<input class="input" type="time" name="atTime" id="atTime" disabled/>
|
<input class="input" type="time" name="atTime" id="atTime" disabled/>
|
||||||
<select class="input" name="atDeviceValue" id="atDeviceValue" disabled>
|
<select class="input" name="atDeviceValue" id="atDeviceValue" disabled>
|
||||||
|
Loading…
Reference in New Issue
Block a user