State-switch in a chips-card?

Hello,

I have this card :

type: custom:state-switch
entity: user
default: default
states:
  default:
    type: conditional
    conditions: []
    card:
      type: custom:mushroom-template-card
      primary: Go to the weatherview
      secondary: Please click to continue...
      icon: mdi:weather-partly-snowy-rainy
      icon_color: blue
      tap_action:
        action: navigate
        navigation_path: /lovelace-mushroom/weather
  tablet:
    type: conditional
    conditions: []
    card:
      type: custom:mushroom-template-card
      primary: Go to the weatherview
      secondary: Please click to continue...
      icon: mdi:weather-partly-snowy-rainy
      icon_color: blue
      tap_action:
        action: navigate
        navigation_path: /lovelace-mushroom/weather-station

This works fine : the user ‘tablet’ navigates to another view.

Now, I want to do the same in a chips-card :

      - type: custom:mushroom-chips-card
        chips:
          - type: template
            entity: sensor.power_consumption_grid_w
            icon: mdi:transmission-tower
            icon_color: |-
              {% if states('sensor.power_consumption_grid_w')|int(0) > 0 %}
                red
              {% else %}
                green
              {% endif %}
            content: '{{ states(''sensor.power_consumption_grid_w'') }} W'
            tap_action:
              action: navigate
              navigation_path: /lovelace-mushroom/electricity

Is that possible ?

Did you ever get or find a way to change icon color with a state ?