no message

This commit is contained in:
belevo\mh
2025-10-16 14:51:11 +02:00
parent 169751eb4c
commit 967cf93b73
2 changed files with 10 additions and 3 deletions

View File

@@ -58,10 +58,16 @@
},
{
"type": "SelectVariable",
"name": "Batteriespannung",
"name": "Batteriestand",
"caption": "Batteriespannung",
"test": true
},
{
"type": "SelectVariable",
"name": "Batterie_Ladezustand",
"caption": "Batterie Ladeszutand %",
"test": true
},
{
"type": "SelectVariable",
"name": "Netzbezug",

View File

@@ -12,6 +12,7 @@ class Batterie_Deye extends IPSModule
$this->RegisterPropertyInteger("MaxBatterieleistung", 0);
// Batteriespannug ist jetzt in % nicht mehr in V
$this->RegisterPropertyInteger("Batteriespannung", 50);
$this->RegisterPropertyInteger("Batterie_Ladezustand", 50)
$this->RegisterPropertyFloat("AufdasNachladen",0);
$this->RegisterPropertyFloat("MinimumEntladen",0);
$this->RegisterPropertyInteger("Batteriemanagement", 1);
@@ -224,7 +225,7 @@ public function RequestAction($Ident, $Value)
$V_Tou = GetValue($this->ReadPropertyInteger("Kotnrolle_TOU_Spannung"));
$V_lad_ent = $this->GetValue("Batteriespannung_laden_entladen");
if ($ct != $sell_Ct || $V_Tou != $V_lad_ent) {
if ($ct != $sell_Ct) {
$this->SetValue("Schreibkontrolle", false);
} else {
$this->SetValue("Schreibkontrolle", true);
@@ -254,7 +255,7 @@ public function RequestAction($Ident, $Value)
$dummy_array = [];
$batterieladezustand = $V;
$batterieladezustand = GetValue($this->ReadPropertyInteger("Batterie_Ladezustand"));