Tesla IOT Key
Home | Installation | Development Notes | Licence
Overview
Goal of this project is to create some code to support
using a smart-button to unlock a Tesla parked within a geofence boundary.
Problem Statement
When I leave for work, I need to unplug my Tesla,
however this cannot be done until the car is awoke and unlocked e.g.
by opening the door, or using the app to unlock and wake the car,
then walking back to unplug the car.
Further still I only want this button to function while the
car is in the garage or near the house. I do not want the
car to unlock when it is not at home.
Requirements
- Enable a smart-button to unlock Tesla cars
- Prevent the car from being unlocked when out of eye-sight from my house or garage.
- Be robust enough to function every day without fail
- Be cheap enough to use everyday
Solution Overview
Use an Amazon IoT button to send a message
to unlock the Tesla via the Tesla API.
The code inside of this repository contains a basic implementation
of a Lambda function to respond to Amazon IOT Button, and its related
IoTButtonEvent.

Licence
This project is licensed under the terms of the MIT license. See the LICENSE file.
This project is in no way affiliated with Tesla Inc. This project is open source under the MIT license, which means you have full access to the source code and can modify it to fit your own needs.
References
Tesla API Reference
Geographic Coordinate System
Amazon IOT Button Gen.2
AWS Lambda Golang Reference
AWS Lambda Deployment Package in Go
IotButtonEvent Sample