no message

This commit is contained in:
belevo\mh
2025-12-18 08:28:17 +01:00
parent d2bae877a4
commit f4e87772e1

View File

@@ -25,7 +25,8 @@ class Energy_Pie extends IPSModule
$this->SetVisualizationType(1);
// IMPORTANT: Timer calls global helper below (must exist!)
$this->RegisterTimer('AutoPush', 0, 'EP_AutoPush($_IPS["TARGET"]);');
$this->RegisterTimer('AutoPush', 0, 'IPS_RequestAction($_IPS["TARGET"], "Refresh", 1);');
}
public function ApplyChanges(): void
@@ -309,13 +310,6 @@ class Energy_Pie extends IPSModule
}
}
/**
* Timer callback (must exist, because RegisterTimer uses it).
* We keep it super simple and robust:
* -> just trigger Refresh, which recalculates + pushes the payload.
*/
function EP_AutoPush(int $id): void
{
@IPS_RequestAction($id, 'Refresh', 1);
}
?>