Admin

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here:
Cookie Policy

IoT Button – Lambda Function package to unlock Tesla

Version

Download

33

Total Views

48

Stock

∞

File Size

1.47 MB

File Type

Create Date

September 15, 2018

Last Updated

September 15, 2018

Terms of Service

Terms of Service ("Terms")
==========================
Last updated: August 06, 2018

Please read these Terms of Service ("Terms", "Terms of Service") carefully before using the http://desigeek.com website (the "Service") operated by Amit Bahree’s (useless?) insight! ("us", "we", or "our").
Your access to and use of the Service is conditioned on your acceptance of and compliance with these Terms. These Terms apply to all visitors, users and others who access or use the Service.
By accessing or using the Service you agree to be bound by these Terms. If you disagree with any part of the terms then you may not access the Service. This Terms of Service agreement for Amit Bahree’s (useless?) insight! is [based on the Terms and Conditions from TermsFeed](https://termsfeed.com/terms-conditions/generator/).

Links To Other Web Sites
------------------------
Our Service may contain links to third-party web sites or services that are not owned or controlled by Amit Bahree’s (useless?) insight!.
Amit Bahree’s (useless?) insight! has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that Amit Bahree’s (useless?) insight! shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such web sites or services.
We strongly advise you to read the terms and conditions and privacy policies of any third-party web sites or services that you visit.

Termination
-----------
We may terminate or suspend access to our Service immediately, without prior notice or liability, for any reason whatsoever, including without limitation if you breach the Terms.
All provisions of the Terms which by their nature should survive termination shall survive termination, including, without limitation, ownership provisions, warranty disclaimers, indemnity and limitations of liability.

Governing Law
-------------
These Terms shall be governed and construed in accordance with the laws of Washington, United States, without regard to its conflict of law provisions.
Our failure to enforce any right or provision of these Terms will not be considered a waiver of those rights. If any provision of these Terms is held to be invalid or unenforceable by a court, the remaining provisions of these Terms will remain in effect. These Terms constitute the entire agreement between us regarding our Service, and supersede and replace any prior agreements we might have between us regarding the Service.

Changes
-------
We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material we will try to provide at least 30 days notice prior to any new terms taking effect. What constitutes a material change will be determined at our sole discretion.
By continuing to access or use our Service after those revisions become effective, you agree to be bound by the revised terms. If you do not agree to the new terms, please stop using the Service.

Contact Us
----------
If you have any questions about these Terms, please contact us.

Agree to Download

Verify CAPTCHA to Download

Lambda function package that executes when a IoT button is pressed, essentially making the IoT Button as a "key fob" for a Tesla. Quite handy for a Model 3, which as of this writing does not have a key fob. You can see this post for an example and more details.

The zip file contains the lambda function package and the dependencies (internally it calls the TeslaJS library to make the Tesla API calls to talk to the car). You don't need to unzip this, but you can upload this as a zip file to a AWS lambda console that you configure to do actions against the IoT button.

Note:

This is not the asynchronous version of the API call - which means it make a blocking call - which in our use case isn't necessarily a bad thing.

If the car is sleeping, executing this one, wakes it up but does not execute the function/code you were trying; and then a second time (now that the car is awake) would execute it. For example in the morning, to unlock the car, we need to press the button twice, but not in quick succession. The second one, once we know the car is awake.

Related

Published by

Amit Bahree

This blog is my personal blog and while it does reflect my experiences in my professional life, this is just my thoughts. Most of the entries are technical though sometimes they can vary from the wacky to even political – however that is quite rare.
Quite often, I have been asked what’s up with the “gibberish” and the funny title of the blog? Some people even going the extra step to say that, this is a virus that infected their system (ahem) well. [:D] It actually is quite simple, and if you have still not figured out then check out this link – whats in a name?
View all posts by Amit Bahree