Planimetry

Hello everybody.
I created a floor plan of my apartment with icons, which, through scripts, manage the shutters for me.

- entity: script.tapparella_sera
    hold_action:
      action: more-info
    tap_action:
      action: toggle
    image: /local/lovelace/tapparella_sera_off.png
    tate_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5)
    state_image:
      'on': /local/lovelace/tapparella_sera_on.png
    style:
      left: 46%
      top: 22%
      width: 2.5%
    type: image

n the same way as it is set, the change of icons takes place when the script goes from off to on.
Unfortunately, the on state of the script is quick that I don’t see the change. How can I do?