Join the "Danske ZenseHome Brugere" Facebook grooup
After creating this guide/poc, I have switched to openHAB og OpenHAB with Zensehome - somewhat better.
This page is stitching a few things together, read and implement:
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
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:
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 )
Add "text/plan" as Content Type
Press "Create Action"
Press "Finish"