X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Event%2FEvent.groovy;h=7e834345ac2da8b4b09f47427e99c6f8e806cf4f;hb=a506caeba94b4c035e0c47f29017f07773e3f318;hp=eecbc7bda63fbbbee31a5e79751601f08e328cb0;hpb=e9196e0f9b6d29e4f5d9fbe51e15b5a6e7fe00b7;p=smartthings-infrastructure.git diff --git a/Event/Event.groovy b/Event/Event.groovy index eecbc7b..7e83434 100644 --- a/Event/Event.groovy +++ b/Event/Event.groovy @@ -18,6 +18,8 @@ public class Event { private double doubleValue private List integerValues = ["battery", "hue", "saturation", "energy", "level", "temperature", "heatingSetpoint", "coolingSetpoint", "thermostatSetpoint", "illuminance"] + private boolean physical + private def date Event(String value, String name, String deviceId, String descriptionText, boolean displayed, String linkText, String displayName, boolean isStateChange, String unit, String data) { this.deviceId = deviceId @@ -35,5 +37,7 @@ public class Event { this.integerValue = value.toInteger() this.doubleValue = Double.parseDouble(value); } + this.physical = true + this.date = new Date() } }