Class ShellyApi


  • public class ShellyApi
    extends java.lang.Object
    Implements the local Shelly REST Api.

    See https://shelly-api-docs.shelly.cloud

    • Constructor Summary

      Constructors 
      Constructor Description
      ShellyApi​(java.lang.String ip)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getRelayIson​(int index)
      Gets the "ison" state of the relay with the given index.
      com.google.gson.JsonObject getStatus()
      Gets the status of the device.
      void setRelayTurn​(int index, boolean value)
      Turns the relay with the given index on or off.
      • Methods inherited from class java.lang.Object

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

      • ShellyApi

        public ShellyApi​(java.lang.String ip)