Announcement
Collapse
No announcement yet.
PLCBUS Connector for HomeSeer 2 - V1.33.2.4
Collapse
This is a sticky topic.
X
X
-
You can find the list of X10 commands in the HS2 manual for the ExecX10 command.
You can also use the PLCBUS connector API:
hs.Plugin( "PLCBUS Connector" ).SendPlcBusCommand( deviceCode as String, plcBusFunction as Integer, data1 as Integer, data2 as Integer, feedback as Boolean )
This one is easier to use, but you can't control the user code.
hs.Plugin( "PLCBUS Connector" ).SendPlcBusCommand( "A1", 2, 0, 0, false )
The second argument (PlcBusFunction) must be one of:
AllUnitsOff = 0,
AllLightsOn = 1,
On = 2, (data1 must be 100, data2 must be 0)
Off = 3, (data1 must be 0, data2 must be 0)
Dim = 4, (light will dim until fade-stop func=11 is received)
Bright = 5, (light will bright until fade-stop func=11 is received)
AllLightsOff = 6,
AllUserLightsOn =7,
AllUserUnitsOff =8,
AllUserLightsOff = 9,
Blink = 10,
FadeStop = 11,
PresetDim = 12, (data1=dim level, data2=rate)
StatusOn = 13,
StatusOff = 14,
StatusRequest =15,
ReceiverMasterAddressSetup =16,
TransmitterMasterAddressSetup =17,
SceneAddressSetup =18,
SceneAddressErase =19,
AllSceneAddressErase = 20,
Reserved1 = 21,
Reserved2 = 22,
Reserved3 = 23,
GetSignalStrength = 24,
GetNoiseStrength = 25,
ReportSignalStrength = 26,
ReportNoiseStrength = 27,
GetAllIdPulse = 28,
GetOnlyOnIdPulse = 29,
ReportAllIdPulse3Phase = 30,
ReportOnlyOnIdPulse3Phase = 31--
stipus
Comment
Comment