Class GoeApi


  • public class GoeApi
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gson.JsonObject getStatus()
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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