This driver uses an X10 CM15A device connected to a USB port on the computer to control X10 devices and receive X10 commands.
Manufacturer:
X10Primary Communications Port: USB
Table of Contents [Hide/Show] Configuration Settings Events Light On/Off State Changed Ready State Changed Received Command Instance Properties LightLevels LightOnOffs LightNames DeviceDisplayName DeviceStartTime DeviceLifecycleStage DeviceIsRunningAndReady Instance Methods TurnOnPlc ( String, Number ) TurnOffPlc ( String, Number ) BrightenPlc ( String, Number, Number ) DimPlc ( String, Number, Number ) AllLightsOnPlc ( String ) AllUnitsOffPlc ( String ) ExtendedCommandPlc ( String, Number, String, String ) TurnOnRF ( String, Number ) TurnOffRF ( String, Number ) BrightenRF ( String, Number, Number ) DimRF ( String, Number, Number ) AllLightsOnRF ( String ) AllLightsOffRF ( String ) AllUnitsOffRF ( String ) TurnOnLight ( Number ) TurnOffLight ( Number ) SetLightLevel ( Number, Number ) TurnOnAllLights TurnOffAllLights TurnOnLightByName ( String ) TurnOffLightByName ( String ) SetLightLevelByName ( String, Number ) SetLightLevelForDuration ( Number, TimeSpan, Number, Number ) TurnOnLightForDuration ( Number, TimeSpan ) SetPropertyForDuration ( String, TimeSpan, Object, Object ) SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )
|
Configuration Settings
- Default Transmit Mode : (optional) The default transmission mode when sending X10 commands. This only applies with invoking methods that do not specify PLC or RF. Enter PLC or RF. If nothing is entered, PLC will be used.
- Device List : (optional) Enter the name of each X10 device next to its ID.
Events
Light On/Off State Changed
Occurs when the light changes from on to off or off to on. Any level greater than zero is considered on.
Whenever Filter:
- PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.
EventArgs:
- Number Index : The index within the property array.
- Number NewValue : The new property value.
- Number PreviousValue : The previous property value.
Ready State Changed
The device's running and ready state changed.
Whenever Filter:
none
EventArgs:
- Number NewValue : The new property value.
- Number PreviousValue : The previous property value.
Received Command
Occurs when a command is received.
Whenever Filter:
- HouseCode : (optional) The X10 house code (A-P).
- DeviceCode : (optional) The device code (1-16).
- CommandCode : (optional) The command code.
EventArgs:
- String HouseCode : The X10 house code (A-P).
- Number DeviceCode : The device code (1-16).
- String CommandCode : The command code.
Instance Properties
LightLevels
Gets the percent on level of the X10 nodes. 0-100
Accessibility : Read Only
Type:
ArrayLightOnOffs
Gets or sets the light to a fully on state or fully off.
Accessibility : Read Only
Type:
ArrayLightNames
Gets the names of the lights.
Accessibility : Read Only
Type:
ArrayDeviceDisplayName
The display name for this device.
Accessibility : Read Only
Type:
StringDeviceStartTime
The date and time when this device was started.
Accessibility : Read Only
Type:
DateTimeDeviceLifecycleStage
The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping
Accessibility : Read Only
Type:
NumberDeviceIsRunningAndReady
Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.
Accessibility : Read Only
Type:
Boolean
Instance Methods
TurnOnPlc ( String, Number )
Turns on an X10 device.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
TurnOffPlc ( String, Number )
Turns off an X10 device.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
BrightenPlc ( String, Number, Number )
Brightens an X10 device.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
percent : The percent to brighten.
DimPlc ( String, Number, Number )
Dims the most recently referenced X10 device in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
percent : The percent to brighten.
AllLightsOnPlc ( String )
Turns on all X10 lights in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
AllUnitsOffPlc ( String )
Turns off all X10 devices in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
ExtendedCommandPlc ( String, Number, String, String )
Send an extended X10 command via PLC.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
hexCommand : The percent to brighten.
hexValue : The percent to brighten.
TurnOnRF ( String, Number )
Turns on an X10 device.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
TurnOffRF ( String, Number )
Turns off an X10 device.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
BrightenRF ( String, Number, Number )
Brightens the most recently referenced X10 device in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
percent : The percent to brighten.
DimRF ( String, Number, Number )
Dims the most recently referenced X10 device in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
deviceCode : The X10 unit code (1-16).
percent : The percent to brighten.
AllLightsOnRF ( String )
Turns on all X10 lights in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
AllLightsOffRF ( String )
Turns off all X10 lights in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
AllUnitsOffRF ( String )
Turns off all X10 devices in the specified house code.
SyntaxParametershouseCode : The X10 house code of the device. (A-P)
TurnOnLight ( Number )
Turns on the specified light.
SyntaxParametersdeviceID : The id of the light (1-256).
TurnOffLight ( Number )
Turns off the specified light.
SyntaxParametersdeviceID : The id of the light (1-256).
SetLightLevel ( Number, Number )
Sets the specified light's level to the specified percent.
SyntaxParametersdeviceID : The id of the device (1-256).
percentOn : The percent level to set the light to. Valid values: 0 to 100 where 0 is typically off and 100 is fully on.
TurnOnAllLights
Turns all lights on.
SyntaxParametersnone
TurnOffAllLights
Turns all lights off (via RF only).
SyntaxParametersnone
TurnOnLightByName ( String )
Turns on the specified light.
SyntaxParametersname : The name of the light.
TurnOffLightByName ( String )
Turns off the specified light.
SyntaxParametersname : The name of the light.
SetLightLevelByName ( String, Number )
Sets the specified light's % level to the specified percent.
SyntaxParametersname : The name of the light.
percentOn : The brightness percent level to set the device to. (0-100)
SetLightLevelForDuration ( Number, TimeSpan, Number, Number )
Sets a light's level for a duration of time and then sets the light to a subsequent level.
SyntaxParametersiD : The id of the light.
duration : The amount of time to wait before setting the light level to the specified subsequent light level.
initialPercentOn : The percent level to set the light to.
finalPercentOn : The percent level to set the light to after the duration has passed.
TurnOnLightForDuration ( Number, TimeSpan )
Turns a light fully on for a duration of time and then turns the light off.
Syntaxvoid TurnOnLightForDuration(
Number iD,
unknown duration )
ParametersiD : The id of the light.
duration : The amount of time to wait before turning off the light.
SetPropertyForDuration ( String, TimeSpan, Object, Object )
Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.
SyntaxParameterspropertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.
SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )
Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.
SyntaxParameterspropertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.