Official Alexa Smart Home Skill for openHAB 2

So here’s how it works…
The cloud connector resides in your OpenHAB installation which (I assume) sits at your home. You don’t have to migrate this anywhere, but you have to point it to your OpenHAB-Cloud instance by changing baseURL in :/etc/openhab2/services/openhabcloud.cfg

Minimal configuration would looks like this:

baseURL=https://your-openHAB.com/
mode=remote
expose=lights,SW2_bedroom_light,SW2_bathroom_light,SW2_ceiling_light

You don’t point your skill to your openhab, but to your openhab-cloud (I assume this is what you intended). You do this by adding user:pass and openhab-cloud url in your /opt/openhab-alexa/config.js file. First few lines should looks like this:

module.exports = {
    userpass: 'you@yourdomain.com:yourpasswd',
    host: 'your-ohcloud.com',
    port: 443,
    path: '/rest/items/',

What I did from OpenHAB-cloud at AWS is as below:

  1. Got openhab cloud up and running
  2. Installed openhab-alexa
  3. Changed config.js and .env files
  4. Deploy lambada function
  5. Configure Alexa skill
  6. Discovery and enjoy!

Hope this helps and open for further questions.

2 Likes