Vacation Mode Switch that be used as condition

Hi,

I have a few automisation scripts that I manually turn on/off when I am on vacation. Instead I like to have a general switch in the frontend, which I can use to turn on or off the vacation mode.

Is there a way to define like a global variable and use this as entity ?

Any suggestions ?

Thanks,
mcb

You can create an input_boolean(.vacation_mode) and an automation which turns on/off all the automations, whenever the input_boolean above is toggled.

Can I make this as an entity to have a switch for this ?

Yes you can

entities:
  - entity: input_boolean.vacation_mode
    name: Vacation
    icon: mdi:airplane-takeoff
    tap_action:
      action: toggle