Keep KS200M motion switch on

I have a Kasa KS200M motion-activated switch installed in my garage which works great with Home Assistant. It turns on automatically when I walk in and turns off a minute later after no motion. I can also turn the switch on/off via the switch entity.
The issue is if I manually turn it on, I would like it to stay on and don’t turn off until, let’s say, one hour after no motion. Is it possible to create an automation to do this with this specific switch? Thoughts?

Not currently that I’m aware of. The current TP-Link integration only knows that it’s turned on or off, but not how. It’s annoyed me since I got one.

However there is a PR in the upstream python-kasa library that will report the motion sensor being triggered which will open up a world of possibility. It seems pretty close to done, hoping it makes it down to HA for Febuary. You can see it here.