by ChopOMatic » Mon Dec 05, 2016 7:34 pm
I've done this using Amazon's actual IoT button ($20, linked below), but it can also be done by "hacking" the standard Amazon Dash buttons ($5) used to order products.
http://amzn.to/2gwkopJLittle credit is due me. The real enabler here is Joe's (flying diver) Better Email plugin. I configured the button to send an email to my dedicated Indigo email address, then configured the Better Email plugin to scan the incoming email and fire one of three different triggers based on whether the button was single-, double-, or long-clicked.
PRO: With a keychain-hangable WiFi button, I can now trigger any of three different Indigo actions with a click.
CON: There's a ~5-second delay in the execution as the button communicates with AWS and sends the email, and Better Email then "interprets" the email and triggers.
If anyone is interested in doing this themselves, here's how:
1. Buy the button
2. Set up the button to send an email when clicked.
3. Set up Better Email to scan incoming email and fire the appropriate trigger. This is done by first creating a Better Email device for scanning the email address, then creating the three triggers.
Assuming you used the default Amazon instructions when setting up your button, the emails it sends will look something like this:
- aws-iot-email-examples.png (80.04 KiB) Viewed 1449 times
In the Better Email trigger setup, you'll want to use a regex match in the MessageText field that will look for both the serial number of your particular button, along with the click-type.
- regex.png (45.06 KiB) Viewed 1449 times
That's it. Yes, this is a very skinny explanation of the process and assumes a wee bit of Indigo familiarity, but even a detailed step-by-step would be simple.
I've done this using Amazon's actual IoT button ($20, linked below), but it can also be done by "hacking" the standard Amazon Dash buttons ($5) used to order products.
[url]http://amzn.to/2gwkopJ[/url]
Little credit is due me. The real enabler here is Joe's (flying diver) Better Email plugin. I configured the button to send an email to my dedicated Indigo email address, then configured the Better Email plugin to scan the incoming email and fire one of three different triggers based on whether the button was single-, double-, or long-clicked.
PRO: With a keychain-hangable WiFi button, I can now trigger any of three different Indigo actions with a click.
CON: There's a ~5-second delay in the execution as the button communicates with AWS and sends the email, and Better Email then "interprets" the email and triggers.
If anyone is interested in doing this themselves, here's how:
[list]1. Buy the button
2. Set up the button to send an email when clicked.
3. Set up Better Email to scan incoming email and fire the appropriate trigger. This is done by first creating a Better Email device for scanning the email address, then creating the three triggers.
[/list]
Assuming you used the default Amazon instructions when setting up your button, the emails it sends will look something like this:
[attachment=1]aws-iot-email-examples.png[/attachment]
In the Better Email trigger setup, you'll want to use a regex match in the MessageText field that will look for both the serial number of your particular button, along with the click-type.
[attachment=0]regex.png[/attachment]
That's it. Yes, this is a very skinny explanation of the process and assumes a wee bit of Indigo familiarity, but even a detailed step-by-step would be simple.