Compare commits
2 Commits
5887912085
...
0690c972c9
| Author | SHA1 | Date | |
|---|---|---|---|
| 0690c972c9 | |||
| e2763916fd |
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "1.084",
|
||||
"version": "1.085",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user