Tabnine Logo
Device.getNode
Code IndexAdd Tabnine to your IDE (free)

How to use
getNode
method
in
ru.iris.common.database.model.devices.Device

Best Java code snippets using ru.iris.common.database.model.devices.Device.getNode (Showing top 4 results out of 315)

origin: MrNeuronix/IRISv2

private void deviceSetLevel(GenericAdvertisement advertisement, Integer level) {
  String label = "Level";
  String uuid;
  if (level == null) {
    level = (Integer) advertisement.getValue("data");
    label = (String) advertisement.getValue("label");
    uuid = (String) advertisement.getValue();
  } else {
    uuid = (String) advertisement.getValue();
  }
  Device ZWaveDevice = Device.getDeviceByUUID(uuid);
  if (ZWaveDevice != null && !ZWaveDevice.getSource().equals("zwave")) {
    // not zwave
    return;
  }
  if (ZWaveDevice == null) {
    LOGGER.info("Cant find device with UUID " + uuid);
    return;
  }
  int node = ZWaveDevice.getNode();
  if (!ZWaveDevice.getStatus().equals("Dead")) {
    LOGGER.info("Setting value: " + level + " to label \"" + label + "\" on node " + node + " (UUID: " + uuid + ")");
    setValue(uuid, label, level);
  } else {
    LOGGER.info("Node: " + node + " Cant set empty value or node dead");
  }
}
origin: MrNeuronix/IRISv2

if (Manager.get().isNodeFailed(homeId, ZWaveDevice.getNode())) {
  LOGGER.info("Setting node " + ZWaveDevice.getNode() + " to DEAD state");
  ZWaveDevice.setStatus("dead");
if (!Manager.get().isNodeAwake(homeId, ZWaveDevice.getNode())) {
  LOGGER.info("Setting node " + ZWaveDevice.getNode() + " to SLEEP state");
  ZWaveDevice.setStatus("sleeping");
  Manager.get().refreshNodeInfo(homeId, ZWaveDevice.getNode());
origin: MrNeuronix/IRISv2

  LOGGER.info("Node " + device.getNode() + ": Value " + manager.getValueLabel(notification.getValueId()) + " removed");
if (manager.isNodeAwake(homeId, device.getNode()) && device.getStatus().equals("Sleeping")) {
  LOGGER.info("Setting node " + device.getNode() + " to LISTEN state");
  device.setStatus("Listening");
    device.getNode() + ": " +
    "Value for label \"" + manager.getValueLabel(notification.getValueId()) + "\" changed --> " +
    "\"" + Utils.getValue(notification.getValueId()) + "\"");
origin: MrNeuronix/IRISv2

beaming.setValue(String.valueOf(Manager.get().isNodeBeamingDevice(homeId, ZWaveDevice.getNode())));
beaming.setReadonly(true);
  return ZWaveDevice;
LOGGER.info("Node " + ZWaveDevice.getNode() + ": Add \"" + label + "\" value \"" + Utils.getValue(notification.getValueId()) + "\"");
ru.iris.common.database.model.devicesDevicegetNode

Popular methods of Device

  • getUuid
  • <init>
  • addValue
  • getSource
  • getValue
  • save
  • setInternalName
  • setInternalType
  • setManufName
  • setNode
  • setProductName
  • setSource
  • setProductName,
  • setSource,
  • setStatus,
  • setType,
  • setUuid,
  • getDeviceByNode,
  • getDeviceByUUID,
  • getInternalName,
  • getProductName

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now