Add a boolean condition

I have the next automation, and I want to add a conditon that if zzz mode (on/off - i have a boolean state zzz) on the automation will no go on, how do i do it:

alias: Outside motion
description: ""
trigger:
  - type: motion
    platform: device
    device_id: db6f630efb7fd3eee1f2af771875debb
    entity_id: binary_sensor.motion_yard
    domain: binary_sensor
condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: input_boolean.away_mode
        state: "on"
      - condition: or
        conditions:
          - condition: state
            entity_id: input_boolean.night_mode
            state: "on"
action:
  - type: turn_on
    device_id: 6d88c9db519e7fd6f5ec003a8efb4555
    entity_id: light.on_off_light_7_2
    domain: light
  - service: notify.mobile_app_lior_s_cell
    data:
      title: Alarm
      message: "Motion detected outside "
mode: single

Firstly your or conditions are wrong, if the condition block starts with an ‘or’ all proceeding conditions will be ‘or’ like this:

condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: input_boolean.away_mode
        state: "on"
      - condition: state
        entity_id: input_boolean.night_mode
        state: "on"

You don’t state if the zzz condition should be another ‘or’ or an ‘and’?

If you want it to be another ‘or’ then simply add it to the above as another condition: state inline with the other two.

If you want it to be an ‘and’ condition then add it as a separate condition that’s not part of the above ‘or’ like this:

condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: input_boolean.away_mode
        state: "on"
      - condition: state
        entity_id: input_boolean.night_mode
        state: "on"
  - condition: state
    entity_id: input_boolean.zzz_something
    state: “on”