Please Help: Night Light Automation with button press

Im new to home assistant and coding so I apologize in advance and thank you for your time. Im transitioning from ST/Webcore to HA and had a automation in webcore which, between the hours of 11:30 - 5am if motion was detected turned the lights on at 10%. If the switch button was physically pressed then the light would set brightness at 255 (100%)

I can’t figure out how to do that in HA. Ive managed to set the motion/times automation however can’t figure out how to bypass the automation if the physical button is pressed to set brightness at 100%.
Using the Jasco/GE 26993

- alias: Turn on living light when there is movement
  trigger:
    platform: state
    entity_id: binary_sensor.living_room_switch, binary_sensor.living_room_zooz
    to: 'on'
  condition:
    condition: time
    after: '23:30'
    before: '05:30'
  action:
    service: light.turn_on
    entity_id: light.living_room_lights_level_2
    data_template:
      brightness: >-
        {% if now().hour > 23 %}
          255
        {% elif now().hour > 23 %}
          10
        {% else %}
          255
        {% endif %}
- alias: Turn off living room light 5 seconds after last movement
  trigger:
    platform: state
    entity_id: binary_sensor.living_room_switch, binary_sensor.living_room_zooz
    to: 'off'
    for:
      seconds: 5
  action:
    service: light.turn_off
    entity_id: light.living_room_lights_level_2