no message

This commit is contained in:
2026-05-27 11:41:25 +02:00
parent 41bc6b2e01
commit 2cc763a588
2 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
{ {
"type": "Button", "type": "Button",
"caption": "Werte sofort übernehmen", "caption": "Werte sofort übernehmen",
"onClick": "Peakshaving_ApplyCurrentValues($id);" "onClick": "GEF_ApplyCurrentValues($id);"
} }
] ]
} }
+4 -5
View File
@@ -53,13 +53,12 @@ class Peakshaving extends IPSModule
{ {
parent::ApplyChanges(); parent::ApplyChanges();
// täglich um 00:05 Uhr
$this->SetTimerInterval('DailyUpdate', 24 * 60 * 60 * 1000); $this->SetTimerInterval('DailyUpdate', 24 * 60 * 60 * 1000);
// Beim Übernehmen der Modul-Konfiguration direkt aktuelle Werte setzen if (IPS_GetName($this->InstanceID) == '') {
$this->ApplyCurrentValues(); IPS_SetName($this->InstanceID, 'Peakshaving');
}
} }
public function RequestAction($Ident, $Value) public function RequestAction($Ident, $Value)
{ {
switch ($Ident) { switch ($Ident) {
@@ -88,7 +87,7 @@ class Peakshaving extends IPSModule
$this->ApplyCapacityToTarget($values['capacity']); $this->ApplyCapacityToTarget($values['capacity']);
$this->ApplyPowerToTarget($values['power']); $this->ApplyPowerToTarget($values['power']);
echo 'Peakshaving Werte wurden übernommen.' . PHP_EOL; return 'Peakshaving Werte wurden übernommen.';
} }
private function GetValuesForCurrentMonth() private function GetValuesForCurrentMonth()