Examples of PushButtonMsg


Examples of org.openhab.binding.maxcul.internal.messages.PushButtonMsg

        TimeUpdateRequestSequence timeSeq = new TimeUpdateRequestSequence(
            this.tzStr, messageHandler);
        messageHandler.startSequence(timeSeq, timeMsg);
        break;
      case PUSH_BUTTON_STATE:
        PushButtonMsg pbMsg = new PushButtonMsg(data);
        pbMsg.printMessage();
        for (MaxCulBindingProvider provider : super.providers) {
          Collection<MaxCulBindingConfig> bindingConfigs = provider
              .getConfigsForRadioAddr(pbMsg.srcAddrStr);
          for (MaxCulBindingConfig bc : bindingConfigs) {
            String itemName = provider.getItemNameForConfig(bc);
            if (bc.getFeature() == MaxCulFeature.SWITCH) {
              // ON maps to 'AUTO'
              if (pbMsg.getMode() == PushButtonMode.AUTO)
                eventPublisher.postUpdate(itemName,
                    OnOffType.ON);
              // OFF maps to 'ECO'
              else if (pbMsg.getMode() == PushButtonMode.ECO)
                eventPublisher.postUpdate(itemName,
                    OnOffType.OFF);
            }
          }
        }
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.