Automation settings for guests/house keeping?

Hi

Every one and then I have house keepers coming to clean the house. During this period I dont want automations regarding lighting to be active.
I have setup a boolean switch which I trigger manually when I know they will be arriving later that day that turns on all the lights. But when I leave home, that automation triggers all lights to be off.
How can I solve this? (Same will be true for when grandma babysits)

And also, how does home assistant handle multiple automations which may be conflicting? For example If i create two automations to trigger the same time, but one turns on the lights and one turns them off, which will win?

When you toggle your housekeeper boolean, you could have it trigger an automation that turns off all of your lighting automatons (homeassistant.turn_off) and then turns on all of the lights. Turning off the boolean would do the opposite.

Hey, I also use a boolean and in my automation I specify what needs to be done when it is on or of.

Example: I dim the lights in the morning only if no visitor (housekeep) is present. I turn the lights up if it is not morning or a visitor is present.

The proposition of Dolores may be simpler for your use case bacause you don’t need to adapt all your automations.

my example:

# TURN ON LIGHT DIMMED

- alias: Licht - Keuken Aan - Dimmed
  initial_state: true
  trigger:
    - entity_id: sensor.kitchen_presence
      platform: state
      to: 'True'
    - entity_id: binary_sensor.ons_huisje_away
      platform: state
      to: 'off'
  condition:
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.input_light
        state: 'on'
      - condition: time
        after: '21:30:00'
        before: '07:30:00'
      - condition: state
        entity_id: sun.sun
        state: 'below_horizon'
      - condition: template
        value_template: "{% if not is_state('input.select.woning_status_select', 'Slapen') %}true{% endif %}"
      - entity_id: calendar.kuisdagen_agenda
        condition: state
        state: 'off'
      - condition: state
        entity_id: group.bezoekers
        state: 'not_home'
  action:
    - service: script.turn_on
      entity_id:
        - script.light_kitchen_on_dimmed
# TURN ON LIGHT NORMAL
 
   - alias: Licht - Keuken Aan - Normaal
      initial_state: true
      trigger:
        - entity_id: sensor.kitchen_presence
          platform: state
          to: 'True'
        - entity_id: binary_sensor.ons_huisje_away
          platform: state
          to: 'off'
      condition:
        - condition: and
          conditions:
          - condition: state
            entity_id: input_boolean.input_light
            state: 'on'
          - condition: template
            value_template: "{% if not is_state('input.select.woning_status_select', 'Slapen') %}true{% endif %}"
          - condition: or
            conditions:
            - condition: state
              entity_id: sun.sun
              state: 'above_horizon'
            - condition: time
              after: '07:30:00'
              before: '21:30:00'
            - entity_id: calendar.kuisdagen_agenda
              condition: state
              state: 'on'
            - condition: state
              entity_id: group.bezoekers
              state: 'home'
      action:
        - service: script.turn_on
          entity_id:
            - script.light_kitchen_on
            - script.light_kitchen_tv_on

I’m in the process of adding a ‘vacation mode’ to my setup.
Going through all my automations and pasting three lines doesn’t seem too much effort:

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

I have to admit that I have only very few automations that have an ‘OR’ condition like @BVE’s second example.
But even in his first one, the ‘AND’ part could be skipped because conditions are considered to be ‘AND’ unless declared specifically as ‘OR’.

So, adding these lines in the existing automations (and the new ones) will future-proof my setup, i.e. I don’t have to add anything anywhere else later on when I create a new automation that might impact the vacation mode - or delete it so that it doesn’t blow up the vacation mode automation.