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
- install a logging app (search the app store: papertrails, simple log…)
- Make sure every THEN section in your flows has a logging point
- 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)
- 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)
- set up flow viewer
- In case of bugs, run flow viewer
- Use the web browser to print to pdf
- Open the file in a pdf viewer that support searching
- Now you can search for the logging text or a device