Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Join the "Danske ZenseHome Brugere" Facebook grooup

Tip

After creating this guide/poc, I have switched to openHAB og OpenHAB with Zensehome - somewhat better.

Tip

This page is stitching a few things together, read and implement:

ZenseHome API interfacing

ZenseHome with Websupport (for Webhooks)


If You dont own an Alexa, You can use other of the IFTTT Triggers - Like, what about turning on the lights when Your phone enter an area like home (smile)

Another issue is this makes use of "If This Then That, also known as IFTTT". So You must have an account of IFTTT.


The purpose is to get this flow:

Gliffy Diagramdrawio
namediagramNameArchitecture.drawio
pagePinrevision51

Where the Webhook was build in ZenseHome with Websupport (for Webhooks) and the Telnet in ZenseHome API interfacing



Creating the Trigger and Action in IFTTT

So login to IFTTT and Start by adding a New Applet with "New Applet"

Press "If Then"

Add the service "Amazon Alexa"

Select "Say a specific phrase"

Add the phrase (like "Office light on") - all should be i lowcase letters. Think the phrase through - danish words are somewhat "difficult" for Alexa

Press "Create Trigger" 

Press "that"

Add the service "Webhooks"

Select "Make a web request"

Add the URL for turning off the light (like http://server.dk/cgi-bin/turnoff-office.exp (this is from ZenseHome with Websupport (for Webhooks) - If You havent made a Port forward in the Home router, its pointless (sad))

Add "text/plan" as Content Type

Press "Create Action"

Press "Finish"


How it should look in IFTTT