Adding switch/button behavior to script/scene trigger

I’m new to HA, just sayin :slight_smile:
When adding switch or button entities to cards (Mushroom entity or chips card in this case) with a Toggle action, the card indicates whether it’s toggled on or off through changing color or in the “info” fields. That functionality seems to be missing when triggering a script or scene. Is there a way to add it?

Here’s an example of Vertical stack with a one card triggering a script and the other a switch, The code seems identical but they don’t behave the same.

type: vertical-stack
cards:
  - type: custom:mushroom-entity-card
    entity: script.salon_fan_light
    icon: mdi:ceiling-fan-light
    icon_color: accent
    tap_action:
      action: toggle
    name: Fan light
    secondary_info: state
  - type: custom:mushroom-entity-card
    entity: switch.t34_smart_plug_switch_1
    icon: mdi:lightbulb
    icon_color: accent
    tap_action:
      action: toggle
    name: Tv light
    secondary_info: state

When a script runs it is momentarily “on”, then “off” again almost immediately when it finishes. Your first card represents that, not the state of the fan light. Your second card represents the state of a switch, which turns on and stays on. Is there no switch entity for the fan light?

Not that I know of because the fan is RF controlled so I created a script that holds the RF command in it.

I think Template Switch - Home Assistant is my solution