flowchart LR
Start((30 Minutes before end of Calendar Event))
subgraph repeat1[Repeat 130 Times]
direction LR
subgraph loop1[Loop over all relevant calandar entries]
direction LR
Condition[Get garbage collection in the next 7 days] --> GarbageCan{Which Garbage can?}
GarbageCan -->|Restmüll| Restmüll[Schalte weißes Licht an]
GarbageCan -->|Gelber Sack| Gelb[Schalte gelbes Licht an]
GarbageCan -->|Papiermüll| Papier[Schalte blaues Licht an]
Restmüll & Gelb & Papier --> Wait1[Warte 5 Sekunden] --> Off[Schalte Licht aus] --> Wait2[Warte 5 Sekunden]
Wait2 --> Condition
end
end
Start --> repeat1