Examples of HmChannel


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

  /**
   * Parses the channel informations into the binding model.
   */
  @SuppressWarnings("unchecked")
  private HmChannel parseChannel(HmDevice device, Map<String, ?> channelData) throws IllegalAccessException {
    HmChannel channel = new HmChannel();
    FieldUtils.writeField(channel, "device", device, true);
    FieldUtils.writeField(channel, "number", String.valueOf(channelData.get("INDEX")), true);

    Map<String, ?> paramsList = (Map<String, ?>) channelData.get("PARAMSET");
    for (String name : paramsList.keySet()) {
      channel.addDatapoint(parseDatapoint(channel, name, (Map<String, ?>) paramsList.get(name)));
    }

    return channel;
  }
View Full Code Here

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

      FieldUtils.writeField(dp, "valueType", -1, true);
    }

    dp.setValue(convertedValue);

    HmChannel channel = new HmChannel();
    FieldUtils.writeField(dp, "channel", channel, true);
    FieldUtils.writeField(channel, "number", channelNumber, true);

    HmDevice device = new HmDevice();
    FieldUtils.writeField(device, "type", StringUtils.defaultString(deviceType, ""), true);
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.