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

Examples of org.openhab.binding.zwave.internal.protocol.SerialMessage


      return;
    }
   
    logger.debug("NODE {}: receiveCommand with converter {} ", node.getNodeId(), converter.getClass());
   
    SerialMessage serialMessage = node.encapsulate(commandClass.setValueMessage(((BigDecimal)converter.convertFromCommandToValue(item, command)).intValue()), commandClass, endpointId);
    logger.debug("NODE {}: receiveCommand sending message {} ", node.getNodeId(), serialMessage);
    if (serialMessage == null) {
      logger.warn("NODE {}: Generating message failed for command class = {}, endpoint = {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
      return;
    }
View Full Code Here


   */
  @Override
  public void executeRefresh(ZWaveNode node,
      ZWaveMultiLevelSensorCommandClass commandClass, int endpointId, Map<String,String> arguments) {
    String sensorType = arguments.get("sensor_type");
    SerialMessage serialMessage;

    logger.debug("Generating poll message for {} for node {} endpoint {}", commandClass.getCommandClass().getLabel(), node.getNodeId(), endpointId);
   
    if (sensorType != null) {
      serialMessage = node.encapsulate(commandClass.getMessage(SensorType.getSensorType(Integer.parseInt(sensorType))), commandClass, endpointId);
View Full Code Here

   */
  @Override
  public void executeRefresh(ZWaveNode node,
      ZWaveAlarmSensorCommandClass commandClass, int endpointId, Map<String,String> arguments) {
    logger.debug("Generating poll message for {} for node {} endpoint {}", commandClass.getCommandClass().getLabel(), node.getNodeId(), endpointId);
    SerialMessage serialMessage;
    String alarmType = arguments.get("alarm_type");
   
    if (alarmType != null) {
      serialMessage = node.encapsulate(commandClass.getMessage(AlarmType.getAlarmType(Integer.parseInt(alarmType))), commandClass, endpointId);
    } else {
View Full Code Here

  @Override
  void executeRefresh(ZWaveNode node,
      ZWaveThermostatFanStateCommandClass commandClass, int endpointId,
      Map<String, String> arguments) {
    logger.debug("NODE {}: Generating poll message for {} endpoint {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
    SerialMessage serialMessage = node.encapsulate(commandClass.getValueMessage(), commandClass, endpointId);

    if (serialMessage == null) {
      logger.warn("NODE {}: Generating message failed for command class = {}, endpoint = {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
      return;
    }
View Full Code Here

  @Override
  void executeRefresh(ZWaveNode node,
      ZWaveThermostatOperatingStateCommandClass commandClass, int endpointId,
      Map<String, String> arguments) {
    logger.debug("NODE {}: Generating poll message for {}, endpoint {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
    SerialMessage serialMessage = node.encapsulate(commandClass.getValueMessage(), commandClass, endpointId);

    if (serialMessage == null) {
      logger.warn("NODE {}: Generating message failed for command class = {}, endpoint = {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
      return;
    }
View Full Code Here

  @Override
  void executeRefresh(ZWaveNode node,
      ZWaveThermostatModeCommandClass commandClass, int endpointId,
      Map<String, String> arguments) {
    logger.debug("NODE {}: Generating poll message for {} endpoint {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
    SerialMessage serialMessage = node.encapsulate(commandClass.getValueMessage(), commandClass, endpointId);
   
    if (serialMessage == null) {
      logger.warn("NODE {}: Generating message failed for command class = {}, endpoint = {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
      return;
    }
View Full Code Here

      return;
    }
   
    logger.debug("NODE {}: receiveCommand with converter {} ", node.getNodeId(), converter.getClass());
   
    SerialMessage serialMessage = node.encapsulate(commandClass.setValueMessage(((BigDecimal)converter.convertFromCommandToValue(item, command)).intValue()), commandClass, endpointId);
    logger.debug("NODE {}: receiveCommand sending message {} ", node.getNodeId(), serialMessage);
    if (serialMessage == null) {
      logger.warn("NODE {}: Generating message failed for command class = {}, endpoint = {}", node.getNodeId(), commandClass.getCommandClass().getLabel(), endpointId);
      return;
    }
View Full Code Here

   */
  @Override
  public void executeRefresh(ZWaveNode node,
      ZWaveBatteryCommandClass commandClass, int endpointId, Map<String,String> arguments) {
    logger.debug("Generating poll message for {} for node {} endpoint {}", commandClass.getCommandClass().getLabel(), node.getNodeId(), endpointId);
    SerialMessage serialMessage = node.encapsulate(commandClass.getValueMessage(), commandClass, endpointId);
   
    if (serialMessage == null) {
      logger.warn("Generating message failed for command class = {}, node = {}, endpoint = {}", commandClass.getCommandClass().getLabel(), node.getNodeId(), endpointId);
      return;
    }
View Full Code Here

   */
  @Override
  public void executeRefresh(ZWaveNode node,
      ZWaveMeterCommandClass commandClass, int endpointId, Map<String,String> arguments) {
    String meterScale = arguments.get("meter_scale");
    SerialMessage serialMessage;

    logger.debug("Generating poll message for {} for node {} endpoint {}", commandClass.getCommandClass().getLabel(), node.getNodeId(), endpointId);
   
    if (meterScale != null) {
      serialMessage = node.encapsulate(commandClass.getMessage(MeterScale.getMeterScale(meterScale)), commandClass, endpointId);
View Full Code Here

    // It's not an ON command from a button switch, do not reset
    if (command != OnOffType.ON)
      return;
   
    // send reset message
    SerialMessage serialMessage = node.encapsulate(commandClass.getResetMessage(), commandClass, endpointId);
    this.getController().sendData(serialMessage);
   
    // poll the device
    for (SerialMessage serialGetMessage : commandClass.getDynamicValues()) {
      this.getController().sendData(node.encapsulate(serialGetMessage, commandClass, endpointId));
View Full Code Here

TOP

Related Classes of org.openhab.binding.zwave.internal.protocol.SerialMessage

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.