Entity buttons - icon and color for on off states

What is the logic behind the icon changing color on the entity button card? It works if no tap hold action is specified. But in case below the icon doesn’t change the color to reflect the state of input_boolean

        - type: entity-button
          name: Roomba
          entity: input_boolean.rules_roomba
          hold_action: call-service
          service: vacuum.start
          service_data:
            entity_id: vacuum.roomba

Also this one doesn’t change color as well. Icon problem?

        - type: entity-button
          name: Kindergarten
          entity: input_boolean.sad

it doesn’t seem to work for an input_boolean