I have a scenario where I want to have a light controlled by a motion detector but I also want to have the capability of turning the light on remotely through a WiFi wall switch. My thought is the run the separate switch leg from the WiFi switch directly to the light on the load (switch leg) side of the motion detector. Everything on the same circuit. Anyone see a problem with this?
No reinvention here, that's exactly how I was planning on doing it. Two switches (one SP, one WiFi) switch #1 controls the motion detector, switch #2 is the WiFi override.
………
OK.
So, how would you turn the power off if you have to work on it-- or do minor repair.
At 25 feet high that would that would be a pretty hard landing.
Of course you can turn off the power to the whole house.
What if you have to check the power to the light socket i.e. "it is responding to motion or darkness?
Or maybe the light bulb is burned out?
Let’s try some vernacular logic.
SW1 and SW2= 1 (light is on)
SW1 and NOT (SW2) MD (motion detect) =1
So, SW1 and/or SW2 should be both zero (0) no contact in order to disable the power to the light-- in case motion is detected by MD.
MD is not a dry contact unlike a generic relay or contactor that actually breaks the contact. Power to the light via solid state circuitry only transitions from HIGH to LOW.. . . power is still “alive”.
Below is in addition to the Simplified Boolean Logic:
For example, suppose you want to build a security system which only works at night and responds to a door being opened. If you have a light sensor you can treat this as giving off a signal that indicates the truth of the statement:
P = It is daytime.
Clearly Not(P) is true when it is night-time and we have our first practical use for Boolean logic!
What we really want is something that works out the truth of the statement:
R= Burglary in progress
from P and
Q = Window open
A little raw thought soon gives the solution that
R = Not(P) And Q
That is the truth of “Burglary in progress” is given by the following truth table:
P |
Q |
NOT(P) |
NOT(P)AND Q |
F |
F |
T |
F |
F |
T |
T |
T |
T |
F |
F |
F |
T |
T |
F |
F |
From this, you should be able to see that the alarm only goes off when it is night-time and a window opens.”
............
Now, the Boolean Truth table is more than you need to answer your question-- that in essence says:
“is there anything I need to be concerned of--with regard to this idea?”
The example above is lifted from Wikipedia.
As a side note:
I have designed a circuit that addresses this dilemma --that you are confronting.
But you are only asking:--does
“anyone see a problem with this?
At first glance it may look complicated-- actually it is not.(with the right components of course)
You also mentioned that you already have a plan on how to do it. So, more power to you.

I can mention more issues that can be stated. . . but that would be for another time.
My install worked for me for more than twenty five years now.