1 public interface SmartthingsActuator {
4 public boolean actuate(int value);
5 public void requestStatus();
6 public int getStatus();
7 public boolean isActiveStatus();
8 public long getTimestampOfLastReading();
9 public void setId(int id);
11 public void registerCallback(SmartthingsActuatorCallback _callbackTo);
13 capability Initialize {
14 description = "Initialize object";
16 method = "registerCallback(SmartthingsActuatorCallback _callbackTo)";
20 description = "Actuate device";
21 method = "actuate(int value)";
25 description = "Handle status";
26 method = "requestStatus()";
27 method = "getStatus()";
28 method = "isActiveStatus()";
29 method = "getTimestampOfLastReading()";
32 capability ActuatorId {
33 description = "Manage actuator Id";
34 method = "setId(int id)";