Skip to content

PHP code to control X10 devices with a HEYU interface running on a Linux PC (Raspberry Pi).

License

Notifications You must be signed in to change notification settings

audiofreak9/X10-Echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X10-Echo

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.

Prerequisite components

  • Linux box, preferably a Raspberry Pi
  • HEYU installed
  • Apache installed
  • PHP installed

Optional components

Installation

Variables

  • 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.

Browser Usage

  • 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>

ha-bridge Usage

  • 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>

Amazon Echo Voice Usage

  • "Alexa, turn on the kitchen lights"
  • "Alexa, turn off the kitchen lights"
  • "Alexa, dim the kitchen lights to 50%"

X10 Control Interface

(This requires the BWS Systems ha-bridge installed)

  • http://<ip address>