python module to control X10 appliances
Python
Pull request Compare This branch is 3 commits ahead, 15 commits behind noirbizarre:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests
x10
.gitignore
COPYING
README.rst
distribute_setup.py
setup.py

README.rst

A python module to control X10 appliances

Current state: alpha and incomplete

Authors:Guillaume Libersat <glibersat@sigill.org>
Contributors:Axel Haustant <noirbizarre@gmail.com>
License:GPL v3 (see COPYING)

Contributions are welcomed !

Requirements

python-x10 requires:

Features

Drivers

  • CM15

Actuators

  • Switchable (On/Off state)
  • Dimmable (Variable state)
  • Generic (Used to talk to any X10 device)

Meta-modules

  • House (Something like a "group" of devices)

API Example

# Retrieve USB CM15 Device
scanner = USBScanner()
controller = scanner.findController()
controller.open()

# Use a single module
lamp = controller.actuator("A2")
lamp.dim(10)
lamp.off()

# Use a group
house = controller.house("B")
house.lightsOff()

More samples in tests.