Using Unifi's AI detection to trigger floodlights

The one labeled Person detected is the one you want to use. That will only be ON if an actual person is detected. If that isn’t changing to ON when a person is in the camera’s field of view, then there is something off with your setup.

One other request. Please format your YAML correctly so it’s more readable.