For this project I use HomeAssistant and ESP8266 module with relay.

Upon detection of the phone in a geo area, the relay starts or stops

depending on the setting.

Smart Socket with ‪‎ESP8266‬ EVB by ‪‎olimex‬ and Home assistent .. Presence detection.. ‪

Software used: mqtt‬, ‪‎nodejs‬ , python3‬ ‪

socket_mqtt_adapter_IoT_Firmware_Olimex - Link

Home Assistant -Link

Olimex ESP8266 IoT Firmware - Link

Hardware used :

PWR-90-240V-5V1A is AC-DC power converter - link

ESP8266 EVB -Link