logging
This commit is contained in:
@@ -153,6 +153,7 @@ public function RequestAction($Ident, $Value)
|
||||
|
||||
public function GetCurrentData(bool $Peak)
|
||||
{
|
||||
IPS_LogMessage("Batterie", "Currentdata");
|
||||
|
||||
$array_powersteps = $this->GeneratePowerSteps();
|
||||
$aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen");
|
||||
@@ -182,7 +183,7 @@ public function RequestAction($Ident, $Value)
|
||||
$hyst = $this->GetValue("Hysterese");
|
||||
|
||||
if($Peak){
|
||||
IPS_LogMessage("Manager", "Im if teil");
|
||||
IPS_LogMessage("Batterie", "Im if teil");
|
||||
|
||||
if($batterieladezustand>=$aufdasnachladen && $hyst==false){
|
||||
|
||||
@@ -202,11 +203,11 @@ public function RequestAction($Ident, $Value)
|
||||
}
|
||||
|
||||
}else{
|
||||
IPS_LogMessage("Manager", "Im else teil");
|
||||
IPS_LogMessage("Batterie", "Im else teil");
|
||||
|
||||
|
||||
if($batterieladezustand>99){
|
||||
IPS_LogMessage("Manager", "im 1");
|
||||
IPS_LogMessage("Batterie", "im 1");
|
||||
|
||||
$filtered_powersteps_entladen = array_filter($array_powersteps, function ($value) {
|
||||
return $value <= 0;
|
||||
@@ -216,14 +217,14 @@ public function RequestAction($Ident, $Value)
|
||||
}elseif($batterieladezustand>=$aufdasnachladen && $hyst==false){
|
||||
|
||||
$this->SetValue("PowerSteps", json_encode($array_powersteps));
|
||||
IPS_LogMessage("Manager", "im 2");
|
||||
IPS_LogMessage("Batterie", "im 2");
|
||||
|
||||
|
||||
}else{
|
||||
|
||||
$dummy_array[] = $this->ReadPropertyInteger("MaxNachladen");
|
||||
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||
IPS_LogMessage("Manager", "im 3");
|
||||
IPS_LogMessage("Batterie", "im 3");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "1.250",
|
||||
"version": "1.251",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user