- All Known Subinterfaces:
Light, Switch
- All Known Implementing Classes:
LightImpl, MotionSensorImpl, SwitchImpl
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
-
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.
-
Returns the name of the device, as set by the user.
- Returns:
- Name of the device.