From b111a5c501d51e51e44ddf7245df055c1c0bdce0 Mon Sep 17 00:00:00 2001 From: dh_Agent Date: Tue, 29 Sep 2026 06:24:26 +0000 Subject: [PATCH] =?UTF-8?q?Ladefreigabe=20f=C3=BCr=20Ladestationen=20stand?= =?UTF-8?q?ardm=C3=A4=C3=9Fig=20aktivieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LadestationGateway/module.php | 2 +- LadestationStandAlone/module.php | 2 +- tests/EaseeModuleStrukturTest.php | 4 ++++ tests/LadestationStandAloneModulstrukturTest.php | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/LadestationGateway/module.php b/LadestationGateway/module.php index d512d2a..74cf845 100644 --- a/LadestationGateway/module.php +++ b/LadestationGateway/module.php @@ -53,7 +53,7 @@ class LadestationGateway extends IPSModule implements VerbraucherSchnittstelle $this->RegisterPropertyInteger('Betriebsmodus', EaseeLadestatus::BETRIEBSMODUS_EASEE); $this->RegisterPropertyString('Ladestationskennung', ''); $this->RegisterPropertyInteger('MaximalerLadestrom', 16); - $this->RegisterPropertyBoolean('Ladefreigabe', false); + $this->RegisterPropertyBoolean('Ladefreigabe', true); $this->RegisterPropertyBoolean('Solarladen', true); $this->RegisterPropertyBoolean('DiagnosevariablenAnzeigen', false); diff --git a/LadestationStandAlone/module.php b/LadestationStandAlone/module.php index f89e880..c6665e3 100644 --- a/LadestationStandAlone/module.php +++ b/LadestationStandAlone/module.php @@ -51,7 +51,7 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell $this->RegisterPropertyString('Passwort', ''); $this->RegisterPropertyInteger('MaximalerLadestrom', 16); $this->RegisterPropertyInteger('Abfrageintervall', 5); - $this->RegisterPropertyBoolean('Ladefreigabe', false); + $this->RegisterPropertyBoolean('Ladefreigabe', true); $this->RegisterPropertyBoolean('Solarladen', true); $this->RegisterPropertyBoolean('DiagnosevariablenAnzeigen', false); diff --git a/tests/EaseeModuleStrukturTest.php b/tests/EaseeModuleStrukturTest.php index 33a0dc7..a94f0ef 100644 --- a/tests/EaseeModuleStrukturTest.php +++ b/tests/EaseeModuleStrukturTest.php @@ -62,6 +62,10 @@ final class EaseeModuleStrukturTest extends TestCase self::assertStringContainsString('implements VerbraucherSchnittstelle', $modul); self::assertStringContainsString('EaseeLadestatus::ausBeobachtungen', $modul); + self::assertStringContainsString( + "RegisterPropertyBoolean('Ladefreigabe', true)", + $modul + ); self::assertStringContainsString("'FahrzeugVerbunden'", $modul); self::assertStringContainsString("'Phasenzahl'", $modul); self::assertStringNotContainsString('7500', $modul); diff --git a/tests/LadestationStandAloneModulstrukturTest.php b/tests/LadestationStandAloneModulstrukturTest.php index ae279f5..c015b79 100644 --- a/tests/LadestationStandAloneModulstrukturTest.php +++ b/tests/LadestationStandAloneModulstrukturTest.php @@ -64,6 +64,10 @@ final class LadestationStandAloneModulstrukturTest extends TestCase { $modul = (string) file_get_contents(self::MODULPFAD . 'module.php'); + self::assertStringContainsString( + "RegisterPropertyBoolean('Ladefreigabe', true)", + $modul + ); self::assertStringContainsString("EnableAction('Ladefreigabe')", $modul); self::assertStringContainsString("EnableAction('Solarladen')", $modul); self::assertStringContainsString("ReadPropertyBoolean('LoggingEin')", $modul);