feat(control): connect physical feedback to bounded V4 command and fallback paths

This commit is contained in:
ENELIX Agent
2026-10-03 11:40:54 +00:00
parent 8eb9688942
commit 9878197aea
24 changed files with 891 additions and 7 deletions
+6
View File
@@ -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');