Automation, entity_id - string manipulation

Lacking in some basic string manipulation skills, I hope someone can help.

I have four input_boolean working together and I want to minimize number of automations.
mode

mode

Here is the automation I am trying to get working, if I set one IB to on, then toggle off the others. In my action/service, the entity_id string should be all IBs except the one that is set to on.

How manipulate the string so the entity_id is getting the correct IBs (I have to remove the trigger.entity_id and the “,” behind)?

- alias: HA Mode set
  trigger:
    platform: state
    entity_id: input_boolean.ha_mode_home,
               input_boolean.ha_mode_away,
               input_boolean.ha_mode_holiday, 
               input_boolean.ha_mode_night
    to: 'on'
  action:
    - service: input_boolean.turn_off
      data:
        entity_id: "{{ input_boolean.ha_mode_home, input_boolean.ha_mode_away, input_boolea

solved in this post.