Outside light on at sunset until a certain time, increase brightness temporarily with presence

Hi everyone, I found this forum trying to find blueprints! Brilliant job.
Though, I am not a programmer. I did find an interesting blueprint, but none seem to do what I have in mind.

The idea is the following.
I have a Ring doorbell, which gives me motion detection, like an advanced PIR.
I want to put a smart zigbee light outside in the porch, a dimmable one.

The light could be switched ON at low brightness (20%) when the sun goes down, just to make the door is visible, and consume the least amount of power.
Then the light could go completely OFF either at sunrise or midnight.

On top of that, I could have the motion detection entity I get from Ring to temporarily put the brightness/dimmer at 100% for a few minutes if motion is detected, when we get back home to see better, and as a deterrent for unwanted people. This could either work within the condition of being within the same times above, or with its own separate time conditions…

How would you guys do that?
I know for some of you it might look like a dumb question, but for me it is not and any help will also help me understand how this works.

Thanks in advance to everyone!

Alex

I think this is a good place to use scenes. I would create scene.porch_night_low and scene.porch_night_high scenes. The high scene switches the porch light and maybe a hallway light, etc on to full brightness and the low scene sets them to whatever your desired nighttime state is.

trigger:
  - platform: numeric_state
    entity_id: sun.sun
    attribute: elevation
    above: 0
    id: 'off'
  - platform: numeric_state
    entity_id: sun.sun
    attribute: elevation
    below: -4
    id: low
  - platform: state
    entity_id: binary_sensor.ring_presence
    to:
      - 'off'
    from:
      - 'on'
    id: low
  - platform: state
    entity_id: binary_sensor.ring_presence
    to:
      - 'on'
    from:
      - 'off'
    id: high
condition:
  - or:
      - condition: trigger
        id: 'off'
      - alias: Only turn light on after dusk
        condition: numeric_state
        entity_id: sun.sun
        attribute: elevation
        below: -4
action:
  - choose:
      - conditions:
          - condition: trigger
            id: 'off'
        sequence:
          - service: light.turn_off
            entity_id: light.porch
    default:
      - service: scene.turn_on
        target:
          entity_id:  scene.porch_night_{{ trigger.id }}