Skip to content

wynbennett/alexa_domoticz_bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alexa_domoticz_bridge

Amazon Echo Alexa to domoticz bridge

Demo on youtube.

Instructions

Server side

  • Where? This code will either run on your Domoticz box or within AWS Lambda. If you are running it locally on Domoticz you need to have SSL HTTP port redirected from your public facing firewall and use a HTTPS cert that is properly signed. You have been warned, but read up on how the web service works and what precautions are taken to verify Amazon as the source of requests. Running it in Lambda allows you to get past the HTTPS requirement
  • What to configure Put your device names into LIST_OF_SWITCHES, LIST_OF_THERMOSTATS, LIST_OF_THERMOSTATS_SETPOINTS, LIST_OF_THERMOSTATS_MODES, and LIST_OF_TEMPSENSORS. Lastly enter all of the possible thermostat mode values into LIST_OF_THERMOSTATS_MODE_VALUES.
  • Rebuild the source. Build the source with the ./rebuild script.
  • Run the code. Run with the ./run script only if running locall on Domoticz.

Amazon Echo

  • Create a new Alexa Skill on Amazon's Developer site. Use the same account that is lniked to your Echo for less headaches down the road.
  • Put in the contents of the speechAssets folder into the approriate boxes on the skill's Interaction Model page.
  • In the Configuration page select if you are running this on Lambda or via HTTPS on your Domoticz box
  • In Lambda just make sure you upload the "*jar-with-dependeces.jar" and set the HOSTNAME, PORT, USERNAME and PASSWORD environment variables. Note the ARN id in Lambda to copy that into the Alexa console.
  • Note the Amazon skill id on the AWS console and copy that into DomoticzSpeechletRequestStreamHandler where it says [your id here]
  • Once you have setup the skill in test mode it will automatically work with your Echo you have related to your Alexa developer account. There is no need to ever publish the skill on the marketplace if you are using it for personal use.
  • Enable the Skill & Test

Contents

This includes a modified pom.xml and Launcher.java to support the skills. The pom includes necessary dependencies, e.g. javax.json. Launcher.java calls the speechlet

About

Amazon Echo Alexa to domoticz bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.4%
  • Shell 0.6%