Question on LastTrip times

It isn’t clear from what documentation so I am asking this question here.
In the sdata, for a motion sensor, what does the LastTrip time represent? Does it represent the time of the most recent state change (inactive=>active or active=>inactive), or only the most recent change to active?


It refers to when a sensor e.g. a door or window sensor is tripped (opened/closed).

Is there a way to get the “last untrip ”… I need to know when my motion sensor changed state, LastTrip will tell me when was the last time my sensor detected a movement, but I also need to know when was the last time my sensor became “idle”. I tried to check the variable “LastReset” but that doesn’t seem to be it.
Any idea???

Ah nevermind… Got it. Thx