User Tools

Site Tools


x10port

This is an old revision of the document!


X10Port

This module is a part of the NetHomeServer. The X10Port manages the connection to the CM12-interface module via a serial port. The CM12-interface module can send and receive X10 commands over the mains wires. Recieved X10 messages are transmitted as Events over the internal NetHomeServer event bus.

Attributes

  • ComPort [get] [set] Serial port where the CM12 is connected. For example COM1 on windows or /dev/ttyUSB0 on Linux
  • State [get] Current connection state to the hardware device, “Connected” or “Not Connected”
  • ReceivedMessages [get] Number of received messages
  • SentMessages [get] Number of sent messages

Actions

  • reconnect Tries to reconnect if the connection to the interface failed at startup.

Events

  • Emits X10Address(HouseCode, DeviceCode) This event is emitted when an X10 address command is received from the CM12.
  • Emits X10Function(X10Type, HouseCode, DeviceCode) This event is emitted when an X10 function command is received from the CM12. The command is directed to the device addressed by the last X10Address command.

See also

x10port.1223062614.txt.gz · Last modified: 2018/11/03 02:57 (external edit)