Conditions on buttons in grid

I have a grid with 4 buttons, each toggle a switch

type: grid
cards:
  - type: button
    tap_action:
      action: toggle
    entity: switch.spots_dimlightsliving
    show_state: true
    icon: mdi:light-recessed
  - type: button
    tap_action:
      action: toggle
    entity: switch.verwarming_badkamer
    icon: mdi:bathtub-outline
    show_state: true
    name: Verwarming badkamer
  - type: button
    tap_action:
      action: toggle
    entity: switch.verwarming_matras
    icon: mdi:bed
    show_state: true
    name: Verwarming matras
  - type: button
    tap_action:
      action: toggle
    entity: switch.waterval
    icon: mdi:waterfall
    show_state: true
    name: Waterval vijver
columns: 4

I have a helper (toggle) witch indicates if I’m on holliday.

Now I want that I can not push on the buttons on the grid when I’m on holliday (so if the toggle is on).
Something like this

  - condition: state
    entity_id: input_boolean.toggle_op_vakantie
    state: 'off'

But it seems I cann’t add this to a button…how can I do that ?

I could use a script, but then I cannot see the status of the device…

I want in fact disable certain buttons if the holiday-toggle is activated…

You can change the tap action to run a script, that way you are still able to see the state of the entity:

type: button
entity: light.living_room
tap_action:
  action: call-service
  service: script.holiday_script
hold_action:
  action: more-info

Thank you Andy, I also thought of this solution.

But because of this, I have to switch to a script for each button that I want to disable…

So I hoped for a different solution.

Take a look at passing variables to scripts, you might be able to pass the entity id as a variable (parameter) to a single script.

Put the grid card inside a conditional card that only appears when the holiday mode is off?
You could have a second conditional card that only appears when the holiday mode is on, showing a message or a picture of the buttons.