x10home - Control X10 devices by name
$ x10home device_name command
x10home controls devices configured by X10::Home on the command line. If you have a configuration file like
x10home
X10::Home
#x10.conf sample file module: ControlX10::CM11 device: "/dev/ttyS0" receivers: - name: office_lights code: K10 desc: Office Back Lights - name: water code: K11 desc: Plant Sprinkler
then running
$ x10 office_lights on
will send an 'on' command to the device with house code 'K' and unit code '10'. To query the (assumed) status of the device, run
$ x10 office_lights status on
afterwards.
$ x10 office_lights on $ x10 office_lights status on $ x10 office_lights off $ x10 office_lights status off
Copyright 2007 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
2007, Mike Schilli <cpan@perlmeister.com>
To install X10::Home, copy and paste the appropriate command in to your terminal.
cpanm
cpanm X10::Home
CPAN shell
perl -MCPAN -e shell install X10::Home
For more information on module installation, please visit the detailed CPAN module installation guide.