gpt4 book ai didi

com.zsmartsystems.zigbee.ZigBeeEndpoint.getIeeeAddress()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 08:37:31 26 4
gpt4 key购买 nike

本文整理了Java中com.zsmartsystems.zigbee.ZigBeeEndpoint.getIeeeAddress()方法的一些代码示例,展示了ZigBeeEndpoint.getIeeeAddress()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeEndpoint.getIeeeAddress()方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.ZigBeeEndpoint
类名称:ZigBeeEndpoint
方法名:getIeeeAddress

ZigBeeEndpoint.getIeeeAddress介绍

[英]Gets the IeeeAddress for this endpoint from it's parent ZigBeeNode
[中]从该终结点的父节点获取其IeeeAddress

代码示例

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing device door lock cluster", endpoint.getIeeeAddress());
  cluster.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

protected boolean hasIasZoneInputCluster(ZigBeeEndpoint endpoint) {
  if (endpoint.getInputCluster(ZclIasZoneCluster.CLUSTER_ID) == null) {
    logger.trace("{}: IAS zone cluster not found", endpoint.getIeeeAddress());
    return false;
  }
  return true;
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing battery alarm converter", endpoint.getIeeeAddress());
  cluster.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing power configuration cluster", endpoint.getIeeeAddress());
  cluster.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing power configuration cluster", endpoint.getIeeeAddress());
  cluster.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing electrical measurement cluster", endpoint.getIeeeAddress());
  clusterMeasurement.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing electrical measurement cluster", endpoint.getIeeeAddress());
  clusterMeasurement.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing electrical measurement cluster", endpoint.getIeeeAddress());
  clusterMeasurement.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing device occupancy cluster", endpoint.getIeeeAddress());
  clusterOccupancy.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void handleCommand(final Command command) {
  if (command instanceof OnOffType) {
    handleOnOffCommand((OnOffType) command);
  } else if (command instanceof PercentType) {
    handlePercentCommand((PercentType) command);
  } else {
    logger.warn("{}: Level converter only accepts PercentType and OnOffType - not {}",
        endpoint.getIeeeAddress(), command.getClass().getSimpleName());
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  for (ZclCluster clientCluster : clientClusters) {
    logger.debug("{}: Closing cluster {}", endpoint.getIeeeAddress(), clientCluster.getClusterId());
    clientCluster.removeCommandListener(this);
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void commandReceived(ZclCommand command) {
  logger.debug("{}: ZigBee command report {}", endpoint.getIeeeAddress(), command);
  if (command instanceof ZoneStatusChangeNotificationCommand) {
    ZoneStatusChangeNotificationCommand zoneStatus = (ZoneStatusChangeNotificationCommand) command;
    updateChannelState(zoneStatus.getZoneStatus());
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing device on/off cluster", endpoint.getIeeeAddress());
  if (clusterOnOffClient != null) {
    clusterOnOffClient.removeCommandListener(this);
  }
  if (clusterOnOffServer != null) {
    clusterOnOffServer.removeAttributeListener(this);
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void disposeConverter() {
  logger.debug("{}: Closing device IAS zone cluster", endpoint.getIeeeAddress());
  clusterIasZone.removeCommandListener(this);
  clusterIasZone.removeAttributeListener(this);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

/**
 * Creates a standard channel UID given the {@link ZigBeeEndpoint}
 *
 * @param thingUID the {@link ThingUID}
 * @param endpoint the {@link ZigBeeEndpoint}
 * @param channelName the name of the channel
 * @return
 */
protected ChannelUID createChannelUID(ThingUID thingUID, ZigBeeEndpoint endpoint, String channelName) {
  return new ChannelUID(thingUID, endpoint.getIeeeAddress() + "_" + endpoint.getEndpointId() + "_" + channelName);
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void commandReceived(ZclCommand command) {
  ButtonPressType buttonPressType = getButtonPressType(command);
  if (buttonPressType != null) {
    logger.debug("{}: Matching ZigBee command for press type {} received: {}", endpoint.getIeeeAddress(),
        buttonPressType, command);
    thing.triggerChannel(channel.getUID(), getEvent(buttonPressType));
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
  public void attributeUpdated(ZclAttribute attribute) {
    logger.debug("{}: ZigBee attribute reports {}", endpoint.getIeeeAddress(), attribute);
    if (attribute.getCluster() == ZclClusterType.ILLUMINANCE_MEASUREMENT
        && attribute.getId() == ZclIlluminanceMeasurementCluster.ATTR_MEASUREDVALUE) {
      Integer value = (Integer) attribute.getLastValue();
      if (value != null) {
        updateChannelState(new DecimalType(BigDecimal.valueOf(value, 2)));
      }
    }
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
  public void attributeUpdated(ZclAttribute attribute) {
    logger.debug("{}: ZigBee attribute reports {}", endpoint.getIeeeAddress(), attribute);
    if (attribute.getCluster() == ZclClusterType.RELATIVE_HUMIDITY_MEASUREMENT
        && attribute.getId() == ZclRelativeHumidityMeasurementCluster.ATTR_MEASUREDVALUE) {
      Integer value = (Integer) attribute.getLastValue();
      if (value != null) {
        updateChannelState(new DecimalType(BigDecimal.valueOf(value, 2)));
      }
    }
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void attributeUpdated(ZclAttribute attribute) {
  logger.debug("{}: ZigBee attribute reports {}", endpoint.getIeeeAddress(), attribute);
  if (attribute.getCluster() == ZclClusterType.ON_OFF && attribute.getId() == ZclOnOffCluster.ATTR_ONOFF) {
    Boolean value = (Boolean) attribute.getLastValue();
    if (value != null && value) {
      updateChannelState(OnOffType.ON);
    } else {
      updateChannelState(OnOffType.OFF);
    }
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

private void updateColorXY(PercentType x, PercentType y) {
  HSBType color = HSBType.fromXY(x.floatValue() / 100.0f, y.floatValue() / 100.0f);
  logger.debug("{}: Update Color XY ({}, {}) -> HSV ({}, {}, {})", endpoint.getIeeeAddress(), x.toString(),
      y.toString(), color.getHue(), color.getSaturation(), currentHSB.getBrightness());
  updateColorHSB(color.getHue(), color.getSaturation());
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com