Cycle MDI icon on Picture Elements Card based on activity

Is it possible to change the MDI icon based on the activity chosen for Harmony Hub?

I’m using Petro’s code again (Thanks again Petro) to determine what activity my harmony is engaged in but cant see to make my picture elements card change the icon based on the activity. Specifically, I want a single icon to represent my tv on my floorplan card and for that icon to change based on the activity.

Current yaml in my elements card that only shows a blue eye regardless if its on/off or activity. When clicked, the more info box does show whats current active.

  - type: state-icon
    title: Game Room TV
    tap_action:
      action: more-info
    entity: sensor.game_room_harmony_hub_activity
    style:
      top: 11%
      left: 73%
  - type: state-icon
    title: Living Room TV
    tap_action:
      action: more-info
    entity: sensor.living_room_harmony_hub_activity
    style:
      top: 25%
      left: 39%

First of all, this shouldn’t probably be in share your projects. Maybe #configuration:frontend would be more fitting?
Anyway you might be able to use a template sensor with template_icon.

Crap, wrong forum area, sorry!!

Ill look into temeplate_icon, thanks!