@Mariusthvdb answering here in the new topic:
Now can be done
In groups_badge_pic, set the images to match the count, like “ok|bug|critical”
To do that replace the line
fname = groups_desc[idx] if debug else ’ ’
by
fname = groups_desc[idx]
About where and when call the script to refresh:
The best way that I found, for now, is this. It will call on switch change or script. For all the rest, there is a 1 minute interval update, that seems reasonable.