All Projects β†’ mseminatore β†’ alexa-tesla

mseminatore / alexa-tesla

Licence: MIT License
Alexa Skills Kit (ASK) project - Tesla monitoring and control for Amazon Echo devices

Programming Languages

javascript
184084 projects - #8 most used programming language
Batchfile
5799 projects

Projects that are alternatives of or similar to alexa-tesla

cookiecutter-flask-ask
Cookiecutter template for Alexa skills based on the fantastic Flask-Ask framework πŸΎπŸ—£β“
Stars: ✭ 51 (+121.74%)
Mutual labels:  amazon-alexa-skill, amazon-echo, alexa-skills-kit, alexa-skill
alexa-ruby
Ruby toolkit for Amazon Alexa service
Stars: ✭ 17 (-26.09%)
Mutual labels:  amazon-alexa-skill, amazon-echo, alexa-skills-kit, alexa-skill
Alexa Skills Kit Sdk For Python
The Alexa Skills Kit SDK for Python helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Stars: ✭ 678 (+2847.83%)
Mutual labels:  skills, alexa-skills-kit, alexa-skill
Alexa Skills Kit Sdk For Java
The Alexa Skills Kit SDK for Java helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Stars: ✭ 758 (+3195.65%)
Mutual labels:  skills, amazon-echo, alexa-skills-kit
alexa-skill-boilerplate
An easy to use Amazon Alexa Skill Boilerplate for fast skill creation
Stars: ✭ 54 (+134.78%)
Mutual labels:  amazon-alexa-skill, amazon-echo, alexa-skill
Echo Sonos
Amazon Echo integration with Sonos
Stars: ✭ 722 (+3039.13%)
Mutual labels:  amazon-echo, alexa-skills-kit, alexa-skill
Alexa Skill Kit
Library for effortless Alexa Skill development with AWS Lambda
Stars: ✭ 278 (+1108.7%)
Mutual labels:  amazon-echo, alexa-skills-kit, alexa-skill
Kanzi
Alexa skill for controlling Kodi
Stars: ✭ 412 (+1691.3%)
Mutual labels:  amazon-echo, alexa-skills-kit, alexa-skill
Awesome Amazon Alexa
πŸ—£Curated list of awesome resources for the Amazon Alexa platform.
Stars: ✭ 458 (+1891.3%)
Mutual labels:  amazon-echo, alexa-skills-kit, alexa-skill
Alexa Assistant
Implementation of the Google Assistant SDK as an Alexa skill
Stars: ✭ 422 (+1734.78%)
Mutual labels:  skills, alexa-skills-kit, alexa-skill
Alexaskillskit.net
.NET library that simplifies Alexa skills development; same object model as Amazon's AlexaSkillsKit for Java
Stars: ✭ 210 (+813.04%)
Mutual labels:  skills, alexa-skill
ultimate-guide-to-voice-assistants
Curation of startups, resources, people, posts etc in the voice-space
Stars: ✭ 55 (+139.13%)
Mutual labels:  amazon-alexa-skill, amazon-echo
b1Assistant
[DEPRECATED] - See README
Stars: ✭ 15 (-34.78%)
Mutual labels:  amazon-echo, alexa-skill
ask-toolkit-for-vscode
ASK Toolkit is an extension for Visual Studio Code (VSC) that that makes it easier for developers to develop and deploy Alexa Skills.
Stars: ✭ 90 (+291.3%)
Mutual labels:  alexa-skills-kit, alexa-skill
Alexa YouTube
Alexa Skills to play Youtube Audio Music
Stars: ✭ 43 (+86.96%)
Mutual labels:  skills, alexa-skill
alexa-open-doc
An Amazon Alexa skill to open and edit google docs through voice
Stars: ✭ 63 (+173.91%)
Mutual labels:  amazon-alexa-skill, amazon-echo
guitarteacher
Guitar Teacher skill for the Amazon Alexa platform
Stars: ✭ 16 (-30.43%)
Mutual labels:  alexa-skills-kit, alexa-skill
Alexa Smarthome
Resources for Alexa Smart Home developers.
Stars: ✭ 496 (+2056.52%)
Mutual labels:  skills, alexa-skills-kit
Azure4Alexa
Create and Host Alexa Custom Skills using .NET and Azure
Stars: ✭ 48 (+108.7%)
Mutual labels:  alexa-skills-kit, alexa-skill
CALexa
CALexa is an Amazon Alexa Skill which allows accessing CalDAV Calendars. It makes use of the Flask-Ask Python micro-framework developed by John Wheeler.
Stars: ✭ 30 (+30.43%)
Mutual labels:  amazon-echo, alexa-skill

Alexa-Tesla

Version License Dependencies Downloads

Monitoring and control of Tesla vehicles using Amazon Echo devices using the Alexa Skills Kit (ASK).

NPM

Installation

In order to create your Alexa skill you must first download and install NodeJS.

An installable TeslaJS module for npm is now available. To download and install the library to a local project directory use the following:

npm install alexa-tesla

If you are building your own project that will depend upon this library then you will want to use the --save parameter in order to update the package.json file for your package as follows:

npm install alexa-tesla --save

You may also install directly from the Github source. Either download and unzip the source, or clone the repository.

Remember, whether you install via npm, ZIP source or Git clone you must install the dependencies before using alexa-tesla.

To install dependencies via npm, From the root level of the library directory type:

npm install

This library is under active development. New features and bug fixes are being added regularly. To ensure that you have the very latest version and it's dependencies be sure to update frequently.

To do so, from your project directory type:

npm update

Setup

Currently you must set this skill up by creating your own AWS Lambda function. Simply ZIP up the directory contents and upload to a new AWS Lambda function. While Alexa skills can also be served from other cloud services such as Microsoft Azure I have not yet personally tested these configurations and so cannot provide instructions.

While I do have account linking support working in the project and have an account linking website established it is unclear whether this would be OK with Tesla Motors. My strong preference would be for them to officially support account linking scenarios via their own website. So for now you must setup your AWS Lambda function to provide either:

  1. Two environment variables called USER and PASS which contain your Tesla.com credentials.
  2. OR one environment variable called TOKEN which contains a valid Tesla.com OAuth token [Recommended]

Note that environment variables are case sensitive! I was caught by this several times during development!

While using option #1 above works it is far less secure to use your login credentials. Unlike logon credentials an OAuth token will eventually expire, and can be revoked at any time by changing your account password.

Additionally using the username and password can require an extra call on each skill invocation to acquire a new OAuth token. These calls not only put undue load on the Tesla servers but they are also relatively slow.

Testing

In order to test this app locally you will first need to install the Alexa-App-Server project.
Then git clone or npm install alexa-tesla into the apps subfolder. Additional instruction reference pending.

Warranty Disclaimer

You may use this skill with the understanding that doing so is AT YOUR OWN RISK. No warranty, express or implied, is made with regards to the fitness or safety of this code for any purpose. If you use this library to query or change settings of your vehicle you understand that it is possible to make changes that could inadvertently lower the security of your vehicle, or cause damage, through actions including but not limited to:

  • Unlocking the vehicle
  • Remotely starting the vehicle
  • Opening the sunroof
  • Opening the frunk or trunk
  • Lowering the battery charge level
  • Impacting the long-term health of your battery

What's New!

Here are some of the most recent features and fixes:

  1. In 0.0.10 added support for charge time remaining and listing vehicles
  2. In 0.0.12 added valet mode and reset valet pin intents and simplified utterances using Amazon custom types
  3. In 0.0.13 added climate settings intent
  4. In 1.0.0 added beginnings of mult-car support and fixed issue with intens failing without launch

Intents

The term Intents is just another name for functions or behaviors exposed by an Alexa skill.

This skill currently supports the following intents:

  • Start/Stop charge
  • Get/Set the charge limit
  • Lock/Unlock doors
  • Start/stop climate system
  • Set climate temperature
  • Beep the horn
  • Flash the lights
  • Get the odometer reading
  • Get the current battery-level/range
  • Check if vehicle is plugged in
  • Check the charge time remaining
  • List the vehicles attached to your account
  • Enable/disable valet mode [NEW!]
  • Reset the valet pin [NEW!]
  • Get the climate settings

The goal is to eventually support all of the Tesla REST API capabilities that make sense.

If there is functionality that you would like to see exposed please let us know.

Additionally, some new behaviors may be created such as charge scheduling, reminders, etc.

The complete set of intents can be found in intents.json

Utterances

The term Utterances represents the set of specific phrases that an Alexa skill can recognize.
All utterances are eventually mapped to intents. Many utterances can, and very often do, map to a single intent.

The complete set of recognized utterances and custom types can typically be found in utterances.txt and customTypes.json.

Some examples utterances are provided below:

"[Alexa] ask Tesla..."

  • What is the battery level
  • for the battery level of [car_name]
  • What is the range
  • to get the range of [car_name]
  • If my car is plugged in
  • if [car_name] is plugged in
  • to start warming
  • to set temperature to 67
  • to beep the horn
  • to flash the lights
  • to lock the doors
  • What is the mileage
  • What is the charge level
  • to set the charge limit to standard
  • Where is my car
  • How long until charging is done
  • How many cars do I own
  • Turn valet mode on|off 1234
  • Reset the valet pin
  • What are the climate settings
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].