Examples of HmResult


Examples of org.openhab.binding.homematic.internal.model.HmResult

   * {@inheritDoc}
   */
  @Override
  public void executeProgram(String programName) throws HomematicClientException {
    logger.debug("Executing program on CCU: {}", programName);
    HmResult result = sendScriptByName("executeProgram", HmResult.class, new String[] { "program_name" },
        new String[] { programName });
    if (!result.isValid()) {
      throw new HomematicClientException("Unable to start CCU program " + programName);
    }
  }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.model.HmResult

      String strValue = ObjectUtils.toString(value);
      if (dp.isStringValue()) {
        strValue = "\"" + strValue + "\"";
      }

      HmResult result = sendScriptByName("setVirtualGroup", HmResult.class, new String[] { "group_name",
          "group_state" }, new String[] { groupName, strValue });
      if (!result.isValid()) {
        throw new HomematicClientException("Unable to set CCU group " + groupName);
      }
    } else {
      super.setDatapointValue(dp, datapointName, value);
    }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.model.HmResult

    String strValue = ObjectUtils.toString(value);
    if (hmValueItem.isStringValue()) {
      strValue = "\"" + strValue + "\"";
    }
    logger.debug("Sending {} with value '{}' to CCU", hmValueItem.getName(), strValue);
    HmResult result = sendScriptByName("setVariable", HmResult.class, new String[] { "variable_name",
        "variable_state" }, new String[] { hmValueItem.getName(), strValue });
    if (!result.isValid()) {
      throw new HomematicClientException("Unable to set CCU variable " + hmValueItem.getName());
    }
  }
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.