PHP code used in my Amazon Echo X10 Home Control tutorial. It is meant to be run on a Raspberry Pi, and interfaces with HEYU. This is intended to be used with BWS System's ha-bridge to provide an Amazon Echo - X10 interface.
This file provides on/off/dim X10 capability from both a URL or by voice command using an Amazon Echo.
- Linux box, preferably a Raspberry Pi
- HEYU installed
- Apache installed
- PHP installed
- BWS Systems ha-bridge installed
- An Amazon Echo
- Must be cloned into an empty directory
- $ cd /var/www/html/
- $ ls -l
- Remove all listed files
- $ sudo git clone https://github.com/audiofreak9/X10-Echo .
- action <on|off> Off set as default action.
- hu <any> X10 house unit.
- percent <0-99> (OPTIONAL) If set, action will be set to obdim.
- On URL: http://<ip address>/echo.php?action=on&hu=<HU>
- Off URL: http://<ip address>/echo.php?action=off&hu=<HU>
- Dim URL: http://<ip address>/echo.php?action=on&hu=<HU>&percent=50
- Shorthand Off URL: http://<ip address>/echo.php?hu=<HU>
- On URL: http://<ip address>/echo.php?action=on&hu=<HU>
- Off URL: http://<ip address>/echo.php?action=off&hu=<HU>
- Dim URL: http://<ip address>/echo.php?action=on&hu=<HU>&percent=${intensity.percent}
- Shorthand Off URL: http://<ip address>/echo.php?hu=<HU>
- "Alexa, turn on the kitchen lights"
- "Alexa, turn off the kitchen lights"
- "Alexa, dim the kitchen lights to 50%"
(This requires the BWS Systems ha-bridge installed)
- http://<ip address>