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
this.integerValue = value.toInteger()
this.doubleValue = Double.parseDouble(value);
}
+ this.physical = true
+ this.date = new Date()
}
}