Class GoeApi
java.lang.Object
io.openems.edge.evcs.goe.chargerhome.GoeApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Gets the status from go-e.boolean
limitMaxEnergy
(boolean limit) Limit MaxEnergy for go-e See https://github.com/goecharger.com.google.gson.JsonObject
setActive
(boolean active) Sets the activation status for go-e.com.google.gson.JsonObject
setCurrent
(int current) Sets the Current in Ampere for go-e See https://github.com/goecharger.boolean
setMaxEnergy
(int maxEnergy) Sets the MaxEnergy in 0.1 kWh for go-e See https://github.com/goecharger.
-
Constructor Details
-
GoeApi
-
-
Method Details
-
getStatus
public com.google.gson.JsonObject getStatus()Gets the status from go-e. See https://github.com/goecharger- Returns:
- the boolean value
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
setActive
public com.google.gson.JsonObject setActive(boolean active) Sets the activation status for go-e.See https://github.com/goecharger.
- Parameters:
active
- boolean if the charger should be set to active- Returns:
- JsonObject with new settings
-
setCurrent
public com.google.gson.JsonObject setCurrent(int current) Sets the Current in Ampere for go-e See https://github.com/goecharger.- Parameters:
current
- current in mA- Returns:
- JsonObject with new settings
-
limitMaxEnergy
public boolean limitMaxEnergy(boolean limit) Limit MaxEnergy for go-e See https://github.com/goecharger.- Parameters:
limit
- maximum energy limit enabled- Returns:
- JsonObject with new settings
-
setMaxEnergy
public boolean setMaxEnergy(int maxEnergy) Sets the MaxEnergy in 0.1 kWh for go-e See https://github.com/goecharger.- Parameters:
maxEnergy
- maximum allowed energy- Returns:
- JsonObject with new settings
-