Compare commits

...

2 Commits

3 changed files with 5 additions and 8 deletions

View File

@@ -117,12 +117,12 @@ public function RequestAction($Ident, $Value)
}else{
if ($power >= 0) {
$this->SetValue("Ladeleistung", $power);
$this->SetValue("Entladeleistung", 0);
$this->SetValue("Entladeleistung", $power);
$this->SetValue("Ladeleistung", 0);
$this->SetValue("Laden3_Entladen4", 4);
} else {
$this->SetValue("Entladeleistung", abs($power));
$this->SetValue("Ladeleistung", 0);
$this->SetValue("Ladeleistung", abs($power));
$this->SetValue("Entladeleistung", 0);
$this->SetValue("Laden3_Entladen4", 3);
}

View File

@@ -340,15 +340,12 @@ class Ladestation_Universal extends IPSModule
if($this->ReadPropertyInteger("Ladestation")==2){
$baseUrl ="http://" . $this->ReadPropertyString("IP_Adresse") . "/api/set?";
IPS_LogMessage("Ladestation", "Aufgerufene ip" . $baseUrl);
}elseif($this->ReadPropertyInteger("Ladestation")==1){
$baseUrl ="http://" . $this->ReadPropertyString("IP_Adresse") . "/mqtt?payload=";
IPS_LogMessage("Ladestation", "Aufgerufene ip" . $baseUrl);
}elseif($this->ReadPropertyInteger("Ladestation")==3){
$baseUrl ="https://api.smart-me.com/pico/loadmanagementgroup/current/" . $this->ReadPropertyString("Seriennummer") . "?current=";
IPS_LogMessage("Ladestation", "Aufgerufene ip " . $baseUrl);
}
// Base URL

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "1.084",
"version": "1.085",
"build": 0,
"date": 0
}