Examples of NikobusModule


Examples of org.openhab.binding.nikobus.internal.core.NikobusModule

    if (config.matches(MODULE_CHANNEL_PATTERN)) {
      String address = config.split(":")[0];
      int channelNum = Integer.parseInt(config.split(":")[1]);
      int group = channelNum > 6 ? 2 : 1;
      String moduleKey = address + "-" + group;
      NikobusModule module = getModule(moduleKey);
      if (module == null) {
        log.trace("Creating channel group {}", moduleKey);
        module = new ModuleChannelGroup(address, group);
        allModules.add(module);
        modules.put(moduleKey, module);
View Full Code Here

Examples of org.openhab.binding.nikobus.internal.core.NikobusModule

   * @param delayedSend
   *            when true, sending will wait for empty bus
   */
  public void scheduleStatusUpdateRequest(String moduleAddress, boolean delayedSend) {

    NikobusModule module = getBindingProvider().getModule(moduleAddress);
    final NikobusCommand cmd = module.getStatusRequestCommand();
    cmd.setWaitForSilence(delayedSend);
    cmd.setMaxRetryCount(10);

    if (commandSender.isCommandRedundant(cmd)) {
      // no need to send, there is a similar command already pending
View Full Code Here

Examples of org.openhab.binding.nikobus.internal.core.NikobusModule

          if (nextModuleToRefresh >= allModules.size()) {
            nextModuleToRefresh = 0;
          }

          NikobusModule m = allModules.get(nextModuleToRefresh);

          log.trace("Requesting scheduled status update for {}", m.getAddress());
          NikobusCommand cmd = m.getStatusRequestCommand();
          cmd.setWaitForSilence(true);
          try {
            sendCommand(cmd);
          } catch (Exception e) {
            log.error("Error occurred during scheduled status refresh.", e);
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.