feat(control): connect physical feedback to bounded V4 command and fallback paths
This commit is contained in:
@@ -724,7 +724,13 @@ class Manager extends IPSModule implements ManagerSchnittstelle
|
||||
$lock = 'ENELIX.V4.Control.' . $this->InstanceID;
|
||||
if (!IPS_SemaphoreEnter($lock, 0)) return;
|
||||
try {
|
||||
$trialBefore=(bool)$this->v4ManagerTestSession();
|
||||
$this->regelnIntern($erneuern);
|
||||
if ($trialBefore && !$this->v4ManagerTestSession() && $this->GetValue('Aktiv')
|
||||
&& IPS_GetInstance($this->InstanceID)['InstanceStatus'] === self::STATUS_AKTIV) {
|
||||
$this->WriteAttributeString('LetzteSollwerte','{}');
|
||||
$this->regelnIntern(true); // exactly one fresh fallback, no cached pre-trial target
|
||||
}
|
||||
if ($this->v4ManagerTestSession()
|
||||
&& (!$this->GetValue('Aktiv') || IPS_GetInstance($this->InstanceID)['InstanceStatus'] !== self::STATUS_AKTIV)) {
|
||||
$this->v4ManagerTestAbbrechen('Manager nicht mehr betriebsbereit');
|
||||
|
||||
Reference in New Issue
Block a user