Detect Vacuum cleaning sticky notification for automation

Hello,

I’m quite new to HA (only few months).
I would like to implement an automation to charge my vacuum to 80% after the cleaning complete by shutting off the power plug.
I tried several scripts, the major one was to detect returning to base for 5 minutes before waiting the charge to reach 80%.

The problem is that when I switch on the power the automation is trigerred even the vacuum is already on the dock.

That’s why I’m wondering if it’s possible to detect the trigger of a notifcation on HA notifcation section to trigger an automation because I got one when the cleaning finishes

Thanks by advance