If you’re using the websocket version each entity will have a property timeSinceChangedMs. Which is the time in milliseconds since the state last changed.
If you’re using the websocket version each entity will have a property timeSinceChangedMs. Which is the time in milliseconds since the state last changed.