I would like to get the last three times the door was opened with persistence and show the times in the sitemap.
I can get the last change without problems using .previousState(true)
But is there any chance to get not only the last change but the last three changes?
Thank you very much.
Not through persistence. You will have to create some Rules and Items to see this. Create three DateTime Items, one for each of the three you want to show. Then create a rule that triggers when the door is opened. In this rule copy the second DateTime to the third, the first to the second, and set the first to