Same automations, different behavior, last_triggered not set at startup

no, split does work, and badges are colored along the number of entities just fine.

this is what i use right now:

themelist = groups_theme[idx].split('|')
if len(themelist) > 1:
    try:
      theme = themelist[groups_count[idx]]
    except IndexError:
       theme = 'green_badge' # Oops, error badge.1 ;-))
#            else:
#                theme = 'black_badge' # this will be your default theme

I’m telling you, you’ll need the else statement if the group_theme gives you a bad value. If you don’t have it, you’ll get an AttributeError when that occurs.

It’s better to be safe.

a ok, thanks, didn’t understand that to be the reason. changed.