}
def setValue(String value) {
- this.presenceLatestValue = presence
println("the presence sensor with id:$id is triggered to $value!")
+ this.presenceLatestValue = value
this.presence = value
this.currentPresence = value
}
+ def currentState(String deviceFeature) {
+ return [rawDateCreated: [time: System.currentTimeMillis()]]
+ }
def currentValue(String deviceFeature) {
if (deviceFeature == "presence") {