Trying to make other sensors look like my DSC sensors on my control pages with Last Changed Short State times. Z-Wave motion detectors don't have that option... so I'm thinking a timestamp into a variable that triggers when motion is detected. I want to go one step further and have a schedule that updates all my Z-Wave motion detector times.... take current time minus timestamp time and put into a new variable as a short time (2m , 1h , 5d , etc.)
So, not sure where to start.... what is a timestamp format that will work mathematically with a scheduled python script to result in a 3 digit short time?
Sidenote.... any plugins that do this? There are lots of things / devices / where it would be cool to see when it was last used without scrolling through pages of log files.... when did the kids turn off their bedroom light.... how long has the bedroom fan been on, etc?