Check for Flow trigger condition

How often is KWGT checking for formula trigger conditions? I have a music player widget that is setting the background color based on the album art via a global. The global is set in a Flow that is triggered when $(mi(cover)) changes. How often/when is the trigger run? I’m seeing that that my background color is not always changing.

Thanks

Hi @KappyNet ,

AFAIK, the $mi(cover)$ function shows the current song and it changes whenever the current song changes. So, the changes is not triggered by Flow.

I hope this would help.

:smiling_face::+1:

You don’t need a Flow for this. Just go to the background color settings, switch it to formula mode, and use one of these direct formulas:

$bp(vibrant, mi(cover))$

$bp(muted, mi(cover))$

$bp(dominant, mi(cover))$

Kustom will update the color instantly the exact millisecond the track changes, with zero delays or background bugs.

Thanks for the replies. I reworked my my formulas and it’s working as it should. Though I’m still curious about when/how often trigger conditions are checked for Flows. Thanks again.

About flow I think the main issue is Android’s background limitations and Kustom’s engine overhead. When a trigger fires, the system often delays the execution to optimize battery. This creates annoying micro-lags. If you try to build a smooth, premium UI using Flows, you will almost always run into these stutters…

So, Keep your layout driven by standard formulas they calculate instantly. Use Flows as a last resort, only when there is absolutely no other way around it.