Nest Camera Person Detected Integration--Lights On

Hello all! I would still consider myself new to Home Assistant. Would anyone be able to help me set an automation with my Nest Cameras to turn on the lights (30 minutes after sunset, and before sunrise), and only last like 5-10 minutes?

I got the cameras to turn on the lights when I want to, but the conditions I add regarding sunrise and sunset seem to affect it.

Any help would be greatly appreciated!

Here is my automation as it stands:

- id: '1635762262625'
  alias: Back ON
  description: ''
  trigger:
  - platform: device
    device_id: cbb9be4d7ab24448da9449256bba476c
    domain: nest
    type: camera_person
  condition: []
  action:
  - type: turn_on
    device_id: a431aeb0c24d326ee58a15eb34cff803
    entity_id: switch.back_yard_switch_1
    domain: switch
  - type: turn_on
    device_id: 2d87fa7532594471dd192c38e0abc373
    entity_id: light.fairy_lights
    domain: light
  - type: turn_on
    device_id: d08bcfb9dda8462a4acea91a007c9a1d
    entity_id: light.garden_lights
    domain: light
  mode: single

The Nest SDM API does not support on or off. Are you using the legacy integration or new SDM API? Just thought I would make sure.