Can scene activation trigger a badge icon (change)?

I build this basic mobile dashboard and was wondering if I could indicate active scenes by an e.g. green badge icon?

And, probably more complex, remove the green badge icon if any state change renders the scene inactive (e.g. one of the lights is being switched off).

Thanks much for any advice.