AC powered motion detector with wifi connection

Hello

Can’t really understand why this does not seem to exist.
I am looking for a motion detector that can basically be inserted into the wire and can also be “switched” via wifi:

AC power -------- wall switch (will be disabled) -------- wire ------MOTION DETECTOR ------------------ lamp

Powered by the AC, it switches a relay on motion detect and/or wifi command.
Any ideas ?

regards,
GN

Any decent smart relay with S input connected to ac powered motion detector could do that. Are you looking for some all-in-one solution?

I’m not clear what form factor you are looking for, but I have a number of these wall switches that report both a binary sensor for motion and have a relay (switch) controlling the output (lights). All over WiFi, with open source Tasmota firmware: