Examples of HmValueItemIteratorCallback


Examples of org.openhab.binding.homematic.internal.communicator.client.BaseHomematicClient.HmValueItemIteratorCallback

  /**
   * Loads all datapoints from the Homematic server, only executed at startup.
   */
  public void loadDatapoints() throws HomematicClientException {
    logger.info("Loading Homematic datapoints");
    context.getHomematicClient().iterateAllDatapoints(new HmValueItemIteratorCallback() {

      @Override
      public void iterate(HomematicBindingConfig bindingConfig, HmValueItem hmValueItem) {
        datapoints.put(bindingConfig, hmValueItem);
      }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.communicator.client.BaseHomematicClient.HmValueItemIteratorCallback

      public void run() {

        try {
          logger.debug("Reloading Homematic server datapoints");
          datapointReloadInProgress = true;
          context.getHomematicClient().iterateAllDatapoints(new HmValueItemIteratorCallback() {
            @Override
            public void iterate(HomematicBindingConfig bindingConfig, HmValueItem hmValueItem) {
              if (!datapoints.containsKey(bindingConfig)) {
                logger.info("Adding new {}", bindingConfig);
                datapoints.put(bindingConfig, hmValueItem);
View Full Code Here

Examples of org.openhab.binding.homematic.internal.communicator.client.BaseHomematicClient.HmValueItemIteratorCallback

   */
  public void loadVariables() throws HomematicClientException {
    if (context.getHomematicClient().supportsVariables()) {
      logger.info("Loading Homematic Server variables");

      context.getHomematicClient().iterateAllVariables(new HmValueItemIteratorCallback() {

        @Override
        public void iterate(HomematicBindingConfig bindingConfig, HmValueItem variable) {
          variables.put(bindingConfig, variable);
        }
View Full Code Here

Examples of org.openhab.binding.homematic.internal.communicator.client.BaseHomematicClient.HmValueItemIteratorCallback

        @Override
        public void run() {
          logger.debug("Reloading Homematic server variables");

          try {
            context.getHomematicClient().iterateAllVariables(new HmValueItemIteratorCallback() {

              @Override
              public void iterate(HomematicBindingConfig bindingConfig, HmValueItem variable) {
                if (hasChanged(bindingConfig, variables.get(bindingConfig), variable)) {
                  variables.put(bindingConfig, variable);
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.