Outdoor plug use indoors

Set up the outdoor plug to activate when a camera or motion detector kicks in. My thought is to turn on a light in another room if a security alert is activated.
If motion detector activates, light up a room to appear as if someone is alerted and awake. Same for indoor motion. Might spook someone into leaving as they don’t know if they have been spotted.

[Mod Note]: Post was moved to this category as your request is satisfied by existing functionality.

You can already do this by creating a Rule/Trigger. I tested this using a v2 cam, v3 cam, v1 & v2 motion sensors and v1 and v2 contact sensors. Example Rule/triggers: