jetzt aber
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
"caption":"Batteriemanagement",
|
"caption":"Batteriemanagement",
|
||||||
"options":[
|
"options":[
|
||||||
{
|
{
|
||||||
"caption":"Vom Wechelrichterhertseller",
|
"caption":"Vom Wechelrichterhersteller",
|
||||||
"value":1
|
"value":1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
// Hier Modul auf Wechselrichter 1 stellen
|
// Hier Modul auf Wechselrichter 1 stellen
|
||||||
elseif ($batterieladezustand >= $aufdasnachladen) {
|
elseif ($batterieladezustand >= $aufdasnachladen) {
|
||||||
$netzbezug = $this->ReadPropertyInteger("Netzbezug");
|
$netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
|
||||||
$dummy_array[] = $netzbezug*(-1);
|
$dummy_array[] = $netzbezug*(-1);
|
||||||
IPS_LogMessage("Batterie", "Dummy Array: " . json_encode($dummy_array));
|
IPS_LogMessage("Batterie", "Dummy Array: " . json_encode($dummy_array));
|
||||||
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||||
@@ -196,8 +196,9 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
|
|
||||||
if ($batterieladezustand <= $aufdasnachladen) {
|
if ($batterieladezustand <= $aufdasnachladen) {
|
||||||
$nachladen = $this->ReadPropertyInteger("NachLaden");
|
$nachladen = GetValue($this->ReadPropertyInteger("NachLaden"));
|
||||||
$dummy_array[] = $nachladen;
|
$dummy_array[] = $nachladen;
|
||||||
|
IPS_LogMessage("Batterie", ": Nachladen " .$nachladen);
|
||||||
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||||
|
|
||||||
}elseif ($batterieladezustand = 100) {
|
}elseif ($batterieladezustand = 100) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "1.079",
|
"version": "1.080",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user