From f4e87772e104e85f2c17731f54cd883c3f9f84bc Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Thu, 18 Dec 2025 08:28:17 +0100 Subject: [PATCH] no message --- Energy_Pie/module.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Energy_Pie/module.php b/Energy_Pie/module.php index 03fa00e..9dd6c01 100644 --- a/Energy_Pie/module.php +++ b/Energy_Pie/module.php @@ -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); -} + + ?> \ No newline at end of file