How to structure your flows

How to structure flows: prepare your flows for debugging

Bugs and strange behaviour, it will always happen.
So you better be prepared…
Structuring your flows makes it easier to find bugs, but you need a start for your bug search

  1. Make sure every THEN section in your flows has a logging point
  2. If you use an AND also make sure to add a logging point in the ELSE section. Especially if your Else section does not have any cards! (How else can you determine if the flow triggered and hit the Else or did not trigger at all)
  3. If you add a (long) delay, make sure to also add a logging point with that same delay. (After 1hr switch off the light, how will you ever trace that one if you do not log)
  1. In case of bugs, run flow viewer
  2. Use the web browser to print to pdf
  3. Open the file in a pdf viewer that support searching
  4. Now you can search for the logging text or a device