1 //Create a class for beacon sensor
3 import SmartThing.SmartThings
5 public class BeaconSensors extends SmartThings {
6 List beaconSensors = new ArrayList()
8 BeaconSensors(Closure sendEvent, boolean init) {
9 beaconSensors = smartThings
12 String id = "beaconID0"
13 String label = "beacon"
14 String displayName = "beaconSensor"
18 presence = "not present"
22 beaconSensors.add(new BeaconSensor(sendEvent, id, label, displayName, presence))