Examples of ZWaveCommandClassValueEvent


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

    // fanMode type seems to be supported, add it to the list.
    if (!this.fanModeTypes.contains(fanModeType))
      this.fanModeTypes.add(fanModeType);

    logger.debug("NODE {}: Thermostat Fan Mode Report value = {}", this.getNode().getNodeId(), fanModeType.getLabel());
    ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), new BigDecimal(value));
    this.getController().notifyEventListeners(zEvent);
  }
View Full Code Here

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

      case SWITCH_MULTILEVEL_REPORT:
        logger.trace("Process Switch Multi Level Report");
       
        int value = serialMessage.getMessagePayloadByte(offset + 1);
        logger.debug(String.format("Switch Multi Level report from nodeId = %d, value = 0x%02X", this.getNode().getNodeId(), value));
        ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), value);
        this.getController().notifyEventListeners(zEvent);
       
        if (this.getNode().getNodeStage() != NodeStage.DONE)
          this.getNode().advanceNodeStage(NodeStage.DONE);
        break;
View Full Code Here

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

      this.operatingStateTypes.add(operatingStateType);

    logger.debug("NODE {}: Operating State Type = {} ({})", this.getNode().getNodeId(), operatingStateType.getLabel(), value);

    logger.debug("NODE {}: Thermostat Operating State Report value = {}", this.getNode().getNodeId(), operatingStateType.getLabel());
    ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), new BigDecimal(value));
    this.getController().notifyEventListeners(zEvent);
  }
View Full Code Here

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

        logger.debug(String.format("Scene activation node from node %d: Scene %d, Time %d", this.getNode().getNodeId(),
            sceneId, sceneTime));

        // Ignore the time for now at least!

    ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), sceneId);
    this.getController().notifyEventListeners(zEvent);
  }
View Full Code Here

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

    // fanState type seems to be supported, add it to the list.
    if (!this.fanStateTypes.contains(fanStateType))
      this.fanStateTypes.add(fanStateType);

    logger.debug("NODE {}: Thermostat fan state  Report value = {}", this.getNode().getNodeId(), fanStateType.getLabel());
    ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), new BigDecimal(value));
    this.getController().notifyEventListeners(zEvent);
  }
View Full Code Here

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

      case BATTERY_REPORT:
        logger.trace("Process Battery Report");
       
        batteryLevel = serialMessage.getMessagePayloadByte(offset + 1);
        logger.debug(String.format("Node %d: Battery report value = 0x%02X", this.getNode().getNodeId(), batteryLevel));
        ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), batteryLevel);
        this.getController().notifyEventListeners(zEvent);

        if (this.getNode().getNodeStage() != NodeStage.DONE)
          this.getNode().advanceNodeStage(NodeStage.DONE);
        break;
View Full Code Here

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

   */
  protected void processSwitchBinaryReport(SerialMessage serialMessage, int offset,
      int endpoint) {
    int value = serialMessage.getMessagePayloadByte(offset + 1);
    logger.debug(String.format("Switch Binary report from nodeId = %d, value = 0x%02X", this.getNode().getNodeId(), value));
    ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), value);
    this.getController().notifyEventListeners(zEvent);
  }
View Full Code Here

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

   */
  protected void processBasicReport(SerialMessage serialMessage, int offset,
      int endpoint) {
    int value = serialMessage.getMessagePayloadByte(offset + 1);
    logger.debug(String.format("Basic report from nodeId = %d, value = 0x%02X", this.getNode().getNodeId(), value));
    ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), value);
    this.getController().notifyEventListeners(zEvent);
  }
View Full Code Here

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

    // mode type seems to be supported, add it to the list.
    if (!this.modeTypes.contains(modeType))
      this.modeTypes.add(modeType);

    logger.debug("NODE {}: Thermostat Mode Report, value = {}", this.getNode().getNodeId(), modeType.getLabel());
    ZWaveCommandClassValueEvent zEvent = new ZWaveCommandClassValueEvent(this.getNode().getNodeId(), endpoint, this.getCommandClass(), new BigDecimal(value));
    this.getController().notifyEventListeners(zEvent);
  }
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.