How to create a timeline chart for window sensors?

Hello,

have a look here