Examples of FritzahaQueryscriptUpdateSwitchCallback


Examples of org.openhab.binding.fritzaha.internal.hardware.callbacks.FritzahaQueryscriptUpdateSwitchCallback

   */
  public void setSwitchState(boolean onOff, String itemName, FritzahaWebInterface webIface) {
    logger.debug("Setting Switch with Device ID " + id + " to value " + (onOff ? "on" : "off"));
    String path = "net/home_auto_query.lua";
    String args = "xhr=1&command=SwitchOnOff&value_to_set=" + (onOff ? 1 : 0) + "&id=" + id;
    webIface.asyncPost(path, args, new FritzahaQueryscriptUpdateSwitchCallback(path, args, webIface,
        FritzahaReauthCallback.Method.GET, 1, itemName));
  }
View Full Code Here

Examples of org.openhab.binding.fritzaha.internal.hardware.callbacks.FritzahaQueryscriptUpdateSwitchCallback

   */
  public void updateSwitchState(String itemName, FritzahaWebInterface webIface) {
    logger.debug("Getting Switch value for Device ID " + id);
    String path = "net/home_auto_query.lua";
    String args = "xhr=1&command=OutletStates&id=" + id;
    webIface.asyncGet(path, args, new FritzahaQueryscriptUpdateSwitchCallback(path, args, webIface,
        FritzahaReauthCallback.Method.GET, 1, itemName));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.