[solved with a helper as a condition] Automation for motion controlled light w/ template: how to add condition not to turn off?

Hi, I have this automation that works well (thanks @123) but… now I would like to add a condition to not switch off.
The reason for this is when not moving enough, I would like to use a boolean (switched on by a remote, probably a toggle) so the light stays on at least.

I guess it has to come in the template that already is used but don’t have a clue how.
Thanks for any tips/help!

alias: "Kitchen: motion"
description: ""
  - platform: state
    entity_id: binary_sensor.kitchen_motion
    to: 'on'
    from: 'off'
  - platform: state
    entity_id: binary_sensor.kitchen_motion
    to: 'off'
    from: 'on'
      minutes: 2
  - condition: state
    entity_id: input_boolean.sleeping
    state: "off"
  - condition: state
    entity_id: input_boolean.somebody_is_home
    state: "on"
  - service: light.turn_on
      transition: 2
      brightness_pct: >-
        {{ 0 if trigger.to_state.state == 'off' else 1 if is_state('input_boolean.bedtime', 'on') or
        is_state('input_boolean.sleeping', 'on') else 90 }}
      entity_id: light.kitchen
mode: single

For anyone searching for something similar: it was as easy as adding another condition with another helper (input_boolean) that is switched on/off.