Cover and picture element

Hi all,
my home assistant commands my home covers by the MQTT entity light.tapparella1/2/3…

In configuration.yaml I convert the light entity in cover by this:

cover:
  - platform: template
    covers:
      tapparella1:
        unique_id: "tapparella1"
        friendly_name: "Serranda Studio"
        open_cover:
          service: light.turn_on
          entity_id: light.tapparella1
        close_cover:
          - data:
              entity_id: light.tapparella1 
            service: light.turn_on
          - delay: 0:00:01
          - data:
              entity_id: light.tapparella1
            service: light.turn_off

In my picture element I have:

  - type: state-icon
    entity: cover.tapparella1
    tap_action:
      action: toggle

When I tap the cover icon in the map, the icon is yellow when the cover goes up and it’s black when the cover goes down. Here is ok.

But if I open/close the cover by the wall buttons the icons color doesn’t change.

BUT if in picture elemet I use:

  - type: state-icon
    entity: light.tapparella1
    tap_action:
      action: toggle

everything works, the icon changes if I use the picture element and if I use the wall button…

How can I solve?

anyone can help me?