Examples of FritzahaWebserviceUpdateSwitchCallback


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

   */
  public void setSwitchState(boolean onOff, String itemName, FritzahaWebInterface webIface) {
    logger.debug("Setting Switch with AIN " + id + " to value " + (onOff ? "on" : "off"));
    String path = "webservices/homeautoswitch.lua";
    String args = "switchcmd=setswitch" + (onOff ? "on" : "off") + "&ain=" + id;
    webIface.asyncGet(path, args, new FritzahaWebserviceUpdateSwitchCallback(path, args, webIface,
        FritzahaReauthCallback.Method.GET, 1, itemName));
  }
View Full Code Here

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

   */
  public void updateSwitchState(String itemName, FritzahaWebInterface webIface) {
    logger.debug("Getting Switch value for AIN " + id);
    String path = "webservices/homeautoswitch.lua";
    String args = "switchcmd=getswitchstate&ain=" + id;
    webIface.asyncGet(path, args, new FritzahaWebserviceUpdateSwitchCallback(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.