Is this the correct way to receive a message if there was an error in flow execution?

Hi,

New user, first flow and first post. I’ve read the forum guidelines and I hope this is indeed the correct place to place my question.

What I’m trying to do
I’ve created an Advanced Flow that shuts down 2 smart sockets when a water sensor is activated. I’d like to receive a notification that:

  1. There was water detected
  2. The Boilingwater-boiler power source was disconnected or not (in case of an error)
  3. The dishwasher power source was disconnected or not (in case of an error)

This is how I set things up:

It’s in Dutch but I hope that the structure makes sense for non-Dutch speakers.

Questions:

  1. Is there a more elegant solution to receive errors?
  2. Is there a method to receive not 3 separate messages but all the information in 1 message?

Thanks in advance!

1 Like

1 - As far as I know, this is indeed to way to handle errors in flow cards.

2 - To combine messages, you could use a text based variable, that you add to during the execution of the flow. At the end of your flow, you put the contents of your variable in the push notification card. The below screenshot contains an example:

4 Likes

And additionally, when you’ve connected the red line, there will be an [error] tag available, which provides for an error description.
Also, you can trigger any flowcard with it as well.
Like, if lamp Y errors, turn on lamp Z.

3 Likes