This is the first of a series of tutorials on how to use HouseControl.
This tutorial creates a simple XML file, house.xml, to describe your home configuration. It assumes that you are using LightwaveRF and have your transceiver running, and plugged in via USB.
This is the configuration file:
<house> <floor id="1" name="Ground"> <room name="Living" id="1"> <light id="1" name="mylight" type="LWRF" code="6febbeedb77b" channel="1"></light> </room> </floor> <config listen_port="50000" lwrf_port="COM8" background_delay="10000"> </config> <plugins> <plugin class="net.geekgrandad.plugin.LWRFControl" type="LWRF"> <interface name="LightControl"></interface> </plugin> </plugins> </house>
It describes a house with a single floor called “Ground” containing a single room called “Living”. This has a single light called mylight. It could be a LightwaveRF light switch or a CFL bulb.
You will need to change the code attribute to the 6-byte ID of your LightWaveRF remote and channel to the channel number you are using.
In the config tag, listen_port defines the port that HouseControl will listen on and lwrf_port is the serial port that your LightwaveRF transceiver uses.
The plugins section tells HouseControl to load the LWRFControl plugin to control lights.
If you are currently successfully using my LightwaveRF library and you have a PC or other machine running Java, you should be able to run HouseControl with this configuration file. Just follow the installation instructions in the README.md file.
If the server runs with no errors, run HouseChat and type “light 1 on” or “mylight on”. It should turn the light on. “mylight off” will turn it off.
Use Ctrl+C to stop the HouseControl server.