Issue with flagging flow based on calculation in Homey Pro

Hi! I’m having trouble with a flow in Homey Pro where I use a calculation to set a logic value, and then try to trigger another flow using a flag or variable.

The flow looks like this (see attached image):

• Trigger: When `NyMalestand` (NewMeterReading) changes
• Then:• Calculate `Forbruk` (Consumption) as `({NyMalestand - ForrigeMalestand})`
• Calculate `Kostnad` (Cost) as `({Forbruk * Strompris})`
• Send push notification with: `Power usage in kWh: ({Forbruk}) kWh Cost: ({Kostnad}) kr`
• Set `ForrigeMalestand` (PreviousMeterReading) to `NyMalestand`

The issue is that the flow doesn’t flag or trigger further actions, and it seems like the calculation isn’t being evaluated correctly. I’ve confirmed that all variables have values, and the flow runs when tested — but the flag or follow-up flow doesn’t activate.

Has anyone experienced something similar? Is there a known limitation with calculations and flags in Homey Pro? Any tips or workarounds?

Attached image shows the full flow and logic blocks.

Thanks in advance!

Some thoughts:

  • Based on the screenshot it seems that you did not include variables (via the tag icon), but typed in their name. You need to include variables/tags via the tag icon in the card. Actual variables/tags have a green, blue or orange frame around them (like in your last flow card).
  • Further, in a Standard Flow (as yours) the cards in the THEN section are all executed in parallel. If the input if the next card depends on the prior one, then you should add a delay to the card(s).

1 Like

Thank you so much – everything is finally working! :tada::clap:

Using the tag icon to insert variables instead of typing them manually made a huge difference. I also added delays between the logic cards, and that solved the issue with calculations not being ready in time.

Now the push notification shows the correct consumption and cost values, and the flow behaves exactly as intended. I really appreciate your help and clear explanation – it pointed me in the right direction and saved me a lot of frustration.

Thanks again for your support! :raising_hands:

1 Like