Enabling person detection for Tapo c325wB in HA automations

I have successfull set up an automation to activate motion detection on a Tapo 325WB camera when the last person leaves home. However, I want to activate person detection as this appears more accurate. There is no opti9n for this in the automation setup. I have tried editing in the automations.yaml file but this continues to enable motion detection, not person detection. Any way I can achieve the desired person detection activation.
Thanks

When you look at the device, which control entities are available there?
Are there any hidden ones?

image

Thanks for your reply. I have solved the issue, having I believe specified something incorrectly first time that I ad found previously . Under the then do section of the automation, specifying the camera under device gives a list of numerous *actions” including for person detection…
Neil