Custom Button: Trigger works but colors don't

Hi All,
I have a functional custom button that is now triggering my ecobee fan using helper, script, and automations. What is not working, are the colors associated with the helper state. Hoping someone see something that I’m missing:

      - type: custom:button-card
        icon: mdi:fan
        name: Ecobee Fan
        tap_action:
          action: toggle
          entity: input_boolean.ecobee_fan
        state:
          - value: 'on'
            icon: mdi:fan
            color_type: card
            color: green
            name: Ecobee Fan On
          - value: 'off'
            icon: mdi:fan-off
            color_type: card
            color: red

You don’t have an entity key.

      - type: custom:button-card
        entity: input_boolean.ecobee_fan
        icon: mdi:fan
        name: Ecobee Fan
        tap_action:
          action: toggle
          entity: input_boolean.ecobee_fan
        state:
          - value: 'on'
            icon: mdi:fan
            color_type: card
            color: green
            name: Ecobee Fan On
          - value: 'off'
            icon: mdi:fan-off
            color_type: card
            color: red
1 Like

Yup, that simple. Thanks.