1 public interface SmartthingsSensor {
5 public boolean isActiveValue();
6 public long getTimestampOfLastReading();
7 public void setId(int id);
9 public void registerCallback(SmartthingsSensorCallback _callbackTo);
11 capability Initialize {
12 description = "Initialize object";
14 method = "registerCallback(SmartthingsSensorCallback _callbackTo)";
18 description = "Handle value";
19 method = "getValue()";
20 method = "isActiveValue()";
21 method = "getTimestampOfLastReading()";
25 description = "Manage sensor Id";
26 method = "setId(int id)";