Now updated to version 0.11. Just a few bug fixes plus it now saves any error messages to an object attribute so these can be accessed externally (such as via a user interface app).
This is a user space driver so a kernel driver for the CM19a does not need to be installed.
Functionality
- Use the CM19a to send any X10 on/off command (eg A1OFF, C16ON) wirelessly to a lamp or appliance module (requires an X10 receiver module).
- Use the CM19a to automatically receive and log to a queue any command received from an X10 remote control.
Click here for the Python code(version 0.11)
Click here for the X10 protocol file
Andrew
Example Output
Configuring...
CM19a found and opened
Vendor ID (dev.idVendor): 3015 (0bc7 hex)
Product ID (dev.idProduct): 2 (0002 hex)
Device Version: 01.00
usbVersion: 01.10
Number of Configurations: 1
Turning ON A1...
Waiting 5 seconds...
Turning OFF A1...
Press one or more keys on the x10 remote within the next 30 seconds
Command A3OFF received via cm19a
Command A3ON received via cm19a
Command A3ON received via cm19a
Command A4OFF received via cm19a
Command A3OFF received via cm19a
Command A1OFF received via cm19a
Receive Queue: ['A3OFF', 'A3ON', 'A3ON', 'A4OFF', 'A3OFF', 'A1OFF']
Press one or more keys on the x10 remote within the next 30 seconds
Command A1ON received via cm19a
Command A2ON received via cm19a
Command A2ON received via cm19a
Command A3ON received via cm19a
Command A4ON received via cm19a
Receive Queue (since the last time we requested the queue): ['A1ON', 'A2ON', 'A2ON', 'A3ON', 'A4ON']
Tests complete.
24 comments: