How to debug flow(s)?

A complex flow (set of flows) is failing and I want to debug it. How can I do that?

This is the setup:

  1. When vibration alarm starts: set variable mailbox.open to Yes (after 10 seconds)
  2. When vibration alarm stops: set variable mailbox.open to No (immediately)
  3. When motion sensor alarm starts: set hall.movement to Yes (immediately)
  4. When motion sensor alarm stops: set hall.movement to No (after 1 minute)
  5. When mailbox.open changes and hall.movement is No and mailbox.open is Yes then notify me of new mail

In the history logging of the vibration sensor I can see that there’s an alarm whenever mail is delivered (or when I open/close the door that the mailbox is part of). However, sometimes I won’t get the mail notification (while I have not been in the hall for hours; hall.movement should be No), so I want to debug this setup.

It would be great if I could see the history of variables (at what time they change to which value), but that’s not possible, or is it? (How?)

Any tips on how to debug/improve my flow(s)?