I’m working on a door-knocking app. I have a SmartSense Multi on my front door and it can detect if the door is shut and if there’s a knock. Awesome. However, I’m getting a false positive for every time I shut the door (the contact is closed and its acceleration is active).
What I’d like to do is add a custom property to the multi (without having to tinker with writing a whole new custom device type) to register the last time the door was open. If the door was opened within a set amount of time, it’s probably just you shutting or locking the door. If adding a property to an existing object is not possible, is there a way to use a static variable within a function - or even a global var to store this last timestamp?
Sorry for the noob questions, java / groovy are new to me.