Package org.openhab.binding.zwave.internal.protocol.event

Examples of org.openhab.binding.zwave.internal.protocol.event.ZWaveEvent


    // Reset the resend counter
    this.resendCount = 0;

    // Alert anyone who wants to know...
    ZWaveEvent zEvent = new ZWaveNodeStatusEvent(this.getNodeId(), ZWaveNodeStatusEvent.State.Alive);
    controller.notifyEventListeners(zEvent);
  }
View Full Code Here


      this.deadTime = Calendar.getInstance().getTime();
      this.queryStageTimeStamp = Calendar.getInstance().getTime();
      logger.debug("NODE {}: Retry count exceeded. Node is DEAD.", this.nodeId);

      if(nodeStageAdvancer.isInitializationComplete() == true) {
        ZWaveEvent zEvent = new ZWaveNodeStatusEvent(this.getNodeId(), ZWaveNodeStatusEvent.State.Dead);
        controller.notifyEventListeners(zEvent);
      }
      else {
        logger.debug("NODE {}: Initialisation incomplete, not signalling DEAD node.", this.nodeId);       
      }
View Full Code Here

          }
          if (networkEvent.getState() == State.Success) {
            logger.debug("NODE {}: Marking node as failed because its on the controllers failed node list.", networkEvent.getNodeId());
            getNode(networkEvent.getNodeId()).setNodeStage(NodeStage.FAILED);
           
            ZWaveEvent zEvent = new ZWaveNodeStatusEvent(networkEvent.getNodeId(), ZWaveNodeStatusEvent.State.Failed);
            this.notifyEventListeners(zEvent);
            break;
          }
        case DeleteNode:
          if(getNode(networkEvent.getNodeId()) == null) {
View Full Code Here

      logger.debug("ZWave Initialisation Complete");
     
      // We only want this event once!
      initializationComplete = true;
     
      ZWaveEvent zEvent = new ZWaveInitializationCompletedEvent(this.ownNodeId);
      this.notifyEventListeners(zEvent);
     
      // If there are DEAD nodes, send a Node Status event
      // We do that here to avoid messing with the binding initialisation
      for(ZWaveNode node : this.getNodes()) {
View Full Code Here

TOP

Related Classes of org.openhab.binding.zwave.internal.protocol.event.ZWaveEvent

Copyright © 2018 www.massapicom. 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.