Interface to X10, control over mains.
Description
This event handler responds to events by issuing X10 commands to a CM X10 interface, it also monitors the CM interface for X10 commands issued elsewhere and turns them into events that can be processed.
Configuration
This event handler has the following parameters:
- serialPort - name or number of the serial port, note the windows interface appears to have a problem when the COM port name is above com9, this may happen with USB connected serial ports. In which case enter a number com1 is 0, so com10 is 9.
For each mapped event there can be one or more X10 commands, these are:
- ChannelOn - send on command for this channel.
- ChannelOff - send off command for this channel.
- ChannelDim - send a dim up a number of steps or down.
Each of the above has at least a house and device code attribute. The ChannelDim also has a level attribute and may have the up attribute to indicate a dim up instead of dim down
Events
The event interface also listens for X10 commands issued from elsewhere on the mains wiring and turns them into events for later processing. These events hve the event type of: http://id.webbrick.co.uk/events/X10 refer to event documentation for further details.
Example
<?xml version="1.0" encoding="utf-8"?>
<eventInterfaces>
<eventInterface module='EventHandlers.X10' name='X10' serialPort='com9'>
<eventtype type="">
<eventsource source="time/second" >
<event>
<params>
<testEq name="second" value="0"/>
</params>
<channelOn house="A" device="1"/>
</event>
<event>
<params>
<testEq name="second" value="30"/>
</params>
<channelOff house="A" device="1"/>
</event>
<event>
<params>
<testEq name="second" value="15"/>
</params>
<channelDim house="A" device="2" level="22" up="yes"/>
</event>
<event>
<params>
<testEq name="second" value="45"/>
</params>
<channelDim house="A" device="2" level="22"/>
</event>
</eventsource>
</eventtype>
</eventInterface>
</eventInterfaces>
