Interface Device

All Known Subinterfaces:
Light, MotionSensor, Switch, TemperatureSensor
All Known Implementing Classes:
LightImpl, MotionSensorImpl, SwitchImpl, TemperatureSensorImpl

public interface Device
Any device that the Bridge knows. There are more specific subclasses for devices that this library supports properly, e.g. Light and Switch.
Since:
3.0.0
  • Method Summary

    Modifier and Type Method Description
    UUID getId()
    Returns the technical id of the device, as assigned by the Bridge.
    String getName()
    Returns the name of the device, as set by the user.
  • Method Details

    • getId

      UUID getId()

      Returns the technical id of the device, as assigned by the Bridge. The id stays the same even if the device name is changed by the user.

      Returns:
      Id of the device.
    • getName

      String getName()
      Returns the name of the device, as set by the user.
      Returns:
      Name of the device.