Question: Scenario: power outlet in the yard for electric vehicle, to avoid running an ugly extension from inside home and leaving an open window; I need to avoid that anyone just comes and uses my power though.

Enter the switch I'm looking for.

This would be the operational flow:

1. Attach the charging cable of the vehicle to the outdoor outlet (no current will flow since the outlet is not powered - yet)
2. get inside, arm said switch, current will start flowing as the vehicle begins charging, and the switch will stay on
3. Either the vehicle stops charging, or I unplug it, or someone else does because they want to use my energy for free: the switch will detect no more current flowing through it, and will disarm, leaving the outdoor outlet inactive

I found two somewhat similar questions:

[Need a switch/circuit breaker that stops power supply to equipment when power comes back after outage](https://electronics.stackexchange.com/questions/384591/need-a-switch-circuit-breaker-that-stops-power-supply-to-equipment-when-power-co) (not good for me, since it is intended to check for incoming power, not outgoing current flow)

[I'm looking for a circuit breaker that interrupts the circuit when current drops to zero](https://electronics.stackexchange.com/questions/487375/im-looking-for-a-circuit-breaker-that-interrupts-the-circuit-when-current-drops) (not good, as it is for DC rather than AC)

Is there a name for this peculiar kind of switch, and/or is DIY easily accessible?

Answer: 
One can buy current switch modules, such as [these](https://customer.honeywell.com/resources/techlit/TechLitDocuments/63-0000s/63-2651.pdf) (google "current switch"), basically a current transformer and electronics to operate a switch contact based on the measured current in one module.

A relay circuit can be designed that allows activating the relay using a momentary start button. A normally open contact from the current switch module placed in parallel with the start button would keep the relay enabled after the start button has been released, but when the monitorred current drops too low the contact opens and the relay turns off.

Current switch requirements:

* Self powered - These "steal" the energy required to operate themselves from the conductor being monitorred. Not requiring a power supply simplifies the circuit.
* Adjustable setpoint for the current level at which the contact enables, so you can tune for your load.
* Monitor side must be rated for AC mains and the current your load requires.
* Contact side must be rated for AC mains and the current the relay coil requires. Normally open contact that closes when the current is above the setpoint.

Relay requirements:

* DPST (or DPDT) with contacts rated for AC mains and the current your load requires.
* Coil that runs on AC mains.

![schematic](https://i.stack.imgur.com/YBtCQ.png)

[simulate this circuit](/plugins/schematics?image=http%3a%2f%2fi.stack.imgur.com%2fYBtCQ.png) – Schematic created using [CircuitLab](https://www.circuitlab.com/)
There are control panels for pool/submersible pumps with dry run protection (switch off when current is below a setup value). Maybe you find some one-phase starter that can fit your needs.