Examples of BinRpcRequest


Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

  /**
   * {@inheritDoc}
   */
  @Override
  public void init(HmInterface hmInterface) throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("init");
    request.addArg(context.getConfig().getBinRpcCallbackUrl());
    request.addArg(hmInterface.toString());
    sendMessage(hmInterface, request);
  }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

  /**
   * {@inheritDoc}
   */
  @Override
  public void release(HmInterface hmInterface) throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("init");
    request.addArg(context.getConfig().getBinRpcCallbackUrl());
    sendMessage(hmInterface, request);
  }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

  /**
   * {@inheritDoc}
   */
  public Object[] getAllValues(HmInterface hmInterface) throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("getAllValues");
    request.addArg(Boolean.TRUE);
    return (Object[]) sendMessage(hmInterface, request)[0];
  }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

   * {@inheritDoc}
   */
  @SuppressWarnings("unchecked")
  @Override
  public Map<String, ?> getAllSystemVariables(HmInterface hmInterface) throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("getAllSystemVariables");
    return (Map<String, ?>) sendMessage(hmInterface, request)[0];
  }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

   */
  @SuppressWarnings("unchecked")
  @Override
  public Map<String, String> getDeviceDescription(HmInterface hmInterface, String address)
      throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("getDeviceDescription");
    request.addArg(address);
    Object[] result = sendMessage(hmInterface, request);
    if (result != null && result.length > 0 && result[0] instanceof Map) {
      return (Map<String, String>) result[0];
    }
    return null;
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

   * {@inheritDoc}
   */
  @SuppressWarnings("unchecked")
  @Override
  public Map<String, HmRssiInfo> getRssiInfo(HmInterface hmInterface) throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("rssiInfo");
    Map<String, HmRssiInfo> rssiList = new HashMap<String, HmRssiInfo>();
    Object[] result = sendMessage(hmInterface, request);
    if (result != null && result.length > 0 && result[0] instanceof Map) {
      Map<String, ?> devices = (Map<String, ?>) result[0];
      for (String sourceDevice : devices.keySet()) {
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

  /**
   * {@inheritDoc}
   */
  public void setDatapointValue(HmInterface hmInterface, String address, String datapointName, Object value)
      throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("setValue");
    request.addArg(address);
    request.addArg(datapointName);
    request.addArg(value);
    sendMessage(hmInterface, request);
  }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

  /**
   * {@inheritDoc}
   */
  @Override
  public void setSystemVariable(HmInterface hmInterface, String name, Object value) throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("setSystemVariable");
    request.addArg(name);
    request.addArg(value);
    sendMessage(hmInterface, request);
  }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.binrpc.BinRpcRequest

  /**
   * {@inheritDoc}
   */
  @Override
  public void executeProgram(HmInterface hmInterface, String programName) throws HomematicClientException {
    BinRpcRequest request = new BinRpcRequest("runScript");
    request.addArg(programName);
    sendMessage(hmInterface, request);
  }
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.