Aqara P1, how can i block fast brightness changes like sun/shadow in automations?

Hello community,

The goal:

I have created an automation so that various notifications are executed in the apartment when our cat is at the door.

For this I use the Aqara P1 which is mounted on the outside of the door, when my cat approaches I get various notifications in the apartment.

My problem:

This works extremely well and stable, but I have a big problem with strong and fast changing light conditions such as rapid change from sun to shade or shade to sun because it´s trigger the automation.
It should be mentioned that the Aqara P1 is not mounted in the shade, but is exposed to changing light conditions.

My question:

Is there a way to set the P1 so that these rapidly changing lighting conditions do not trigger the automation?

Home Assistant 2022.12.1 using the HassOS image
MQTT in use
P1 Firmware-Version: 0.0.0_0006

Thanks in advance for your help