BLE Sensor enable/disable by location

Is it possible to enable the BLE Beacon Sensor when iam arriving at home and disable it when iam leaving home?

Yes just use it in an automation.