Custom badges icon (Dynamic)

Yes, the Home Page.

I found this:

and it works.

It also points out:

The following badges could be overriden:

    alarms,
    lights,
    windows,
    doors,
    garagedoors,
    blinds,
    presence,
    lock,
    climate,
    screens,
    projectors,
    speakers.

So I’m trying to customize “lock” with lock-open and lock-closed

Default
badgeConfigs: {
alarms: { icon: ‘f7:exclamationmark_triangle_fill’ },
lights: { icon: ‘oh:lightbulb’ },
windows: { icon: ‘oh:window’, state: ‘open’ },
doors: { icon: ‘oh:door’, state: ‘open’ },
garagedoors: { icon: ‘oh:garagedoor’, state: ‘open’ },
blinds: { icon: ‘oh:cinemascreen’, state: ‘100’ },
presence: { icon: ‘oh:motion’, state: ‘on’ },
lock: { icon: ‘oh:lock’, state: ‘open’, stateOff: ‘closed’ },
climate: { icon: ‘oh:climate’, state: ‘on’ },
screens: { icon: ‘f7:tv’ },
projectors: { icon: ‘f7:videocam_fill’ },
speakers: { icon: ‘f7:speaker_2_fill’ }