This commit is contained in:
@@ -133,6 +133,7 @@ PHP
|
||||
'GoodWe-Entladen verwendet negativen Managerwert und Modus 12',
|
||||
static function (TestContext $test) use (
|
||||
$managerdatenSenden,
|
||||
$batterieID,
|
||||
$modusID,
|
||||
$leistungID
|
||||
): void {
|
||||
@@ -141,6 +142,10 @@ PHP
|
||||
static fn (): bool => (float) GetValue($leistungID) === 843.0
|
||||
&& (int) GetValue($modusID) === 12
|
||||
);
|
||||
$test->assertSame(-843, GetValue($test->objectByIdent('Sollleistung', $batterieID)));
|
||||
IPS_RequestAction($batterieID, 'VorgabeTimeout', 0);
|
||||
$test->assertSame(false, GetValue($test->objectByIdent('SollwertGueltig', $batterieID)));
|
||||
$test->assertSame(0, GetValue($test->objectByIdent('Sollleistung', $batterieID)));
|
||||
}
|
||||
);
|
||||
|
||||
@@ -197,6 +202,7 @@ PHP
|
||||
$leistungID
|
||||
): void {
|
||||
$test->configureInstance($batterieID, ['Batteriemanagement' => 1]);
|
||||
$test->assertSame(0, GetValue($test->objectByIdent('Sollleistung', $batterieID)));
|
||||
$test->waitUntil(
|
||||
static fn (): bool => (float) GetValue($leistungID) === 0.0
|
||||
&& (int) GetValue($managementID) === 1
|
||||
|
||||
Reference in New Issue
Block a user