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{ }else{
if ($power >= 0) { if ($power >= 0) {
$this->SetValue("Ladeleistung", $power); $this->SetValue("Entladeleistung", $power);
$this->SetValue("Entladeleistung", 0); $this->SetValue("Ladeleistung", 0);
$this->SetValue("Laden3_Entladen4", 4); $this->SetValue("Laden3_Entladen4", 4);
} else { } else {
$this->SetValue("Entladeleistung", abs($power)); $this->SetValue("Ladeleistung", abs($power));
$this->SetValue("Ladeleistung", 0); $this->SetValue("Entladeleistung", 0);
$this->SetValue("Laden3_Entladen4", 3); $this->SetValue("Laden3_Entladen4", 3);
} }

View File

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

View File

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