Implementing and/or conditions in automations

Hi, can any one help me?

I’m trying to setup an automation that only turn on a light when someone is home if and only if (someone is home) and (the sun is down) and (the mode is Home Alone or Away or Vacation).

My automation

- action:
  - data:
      entity_id: light.livingroom_corner
    service: light.turn_on
  - data:
      entity_id: input_select.mode
      option: Home Alone
    service: input_select.select_option
  alias: Someone is Home
  id: '1501785223650'
  trigger:
  - entity_id: group.everyone
    platform: state
    to: home
  condition:
    - condition: and
      conditions:
      - condition: state
        entity_id: group.everyone
        state: home
      - condition:
        - below: '-2'
          condition: numeric_state
          entity_id: sun.sun
          value_template: '{{ state.attributes.elevation }}'
    - condition: or
      conditions:
        - condition: state
          entity_id: input_select.mode
          option: Home Alone
        - condition: state
          entity_id: input_select.mode
          option: Away
        - condition: state
          entity_id: input_select.mode
          option: Vacation

My input_select

mode:
    name: Automation Mode
    options:
     - Home Alone
     - Away
     - Vacation
     - Visitors
    initial: Home Alone
    icon: mdi:auto-fix

My groups

everyone:
  entities:
  - device_tracker.laithsiphone
  - device_tracker.malaksiphone
  name: People
  view: false

If device_tracker.laithsiphone or device_tracker.malaksiphone is home group.everyone will change state to home.