Change icon color depending on state Lovelace Floorplan

How can i have the icons below the clock to change color depending on state?
It is working for all lights and switches.

     - type: state-icon
        tap_action: toggle
        entity: input_boolean.guests_present
        style:
          top: 30%
          left: 60%
          padding: 0px
        --paper-item-icon-color: rgb(89, 89, 89)
        --paper-item-icon-active-color: yellow brightness(130%) saturate(1.5)
          drop-shadow(0px 0px 10px gold)

Solved with template switch

  lt_present:
    value_template: "{{ is_state('input_boolean.lt_present', 'on') }}"
    turn_on:
      service: homeassistant.turn_on
      data:
        entity_id: input_boolean.lt_present
    turn_off:
      service: homeassistant.turn_off
      data:
        entity_id: input_boolean.lt_present