I have definded a “lastupdate” item for each of my oudoor hue motion sensors. The idea was to set a timestamp every time a motion has been detected. By doing that I will be able to see when the last motion was detected on each motion sensor. The problem is that it seems like the “ParkingHueMotion_Occupancy” is updated with the same value everytime the hue sensor is reporting a temperature or lux change. I will like to update the timestamp only when “ParkingHueMotion_Occupancy” is changed from “false” to “true”.
Any suggestion on how to do that? If not, is there any other way to retrieve a timestamp from when an item was changed last time?
Sounds interesting. I have tried to find script examples (DSL/Javascript), but without any luck. Also the documentation of getLastStateChange is very sparse.