Pencom


Pencom Design is a manufacturer of computer controlled relay, I/O and custom boards for commercial and industrial applications. This interface to Pencom’s Relay Control Boards is designed to work over an ethernet to serial adapter (NPort). Each switch (relay) can be turned on/off, and the state of the relay can be read.

Configuration

The Pencom relays can be daisychained to allow for up to 8 boards.

# Example configuration.yaml entry
switch:
  - platform: pencom
    host: host.domain.com
    port: 4001
    boards: 2 
    relays:
      - name: "Irrigation"
        addr: 0 
      - name: "Upper Entry Door"
        addr: 1
      - name: "Fountain"
        addr: 0
        board: 2

Configuration Variables

host

(string)(Required)The IP address of the ethernet to serial adapter. It is assumed that the adapter has been preconfigured.

port

(port (positive integer between 1-65535))(Required)The port of the ethernet to serial adapter.

boards

(int between 1 and 8)(Optional)Number of boards daisychained together (default is 1).

relays

(list)(Required)List of relays.

name

(string)(Required)The name of the switch (component).

addr

(int)(Required)The relay on the board starting with 0.

board

(int between 1 and 8)(Optional)The board number (defaults to 1).