Examples of EnergenieBindingConfig


Examples of org.openhab.binding.energenie.internal.EnergenieBindingConfig

  protected void execute() {
    logger.debug("execute() method is called!");

    for (EnergenieBindingProvider provider : providers) {
      for (String itemName : provider.getItemNames()) {
        EnergenieBindingConfig deviceConfig = getConfigForItemName(itemName);
        if (deviceConfig == null) {
          return;
        }
        try {
          String pmsId = deviceConfig.getDeviceId();
          int pmsSocketId = deviceConfig.getSocketNumber();

          String pmsIp = pmsIpConfig.get(pmsId);
          String pmsPw = pmsPasswordConfig.get(pmsId);
          String url = "http://"+pmsIp+"/login.html";
          String urlParameters = "pw="+pmsPw;
View Full Code Here

Examples of org.openhab.binding.energenie.internal.EnergenieBindingConfig

   */
  @Override
  protected void internalReceiveCommand(String itemName, Command command) {
    logger.debug("internalReceiveCommand() is called!");
   
    EnergenieBindingConfig deviceConfig = getConfigForItemName(itemName);
    if (deviceConfig == null) {
      return;
    }
    try {
      String pmsId = deviceConfig.getDeviceId();
      int pmsSocketId = deviceConfig.getSocketNumber();
     
      sendLogin(pmsId);
      if (OnOffType.ON.equals(command)) {
        sendOn(pmsId, pmsSocketId);
      } else if (OnOffType.OFF.equals(command)) {
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.