Franck Nijhof 1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00

1.8 KiB

title, description, logo, ha_category, ha_release, ha_iot_class, redirect_from
title description logo ha_category ha_release ha_iot_class redirect_from
Pencom How to use Pencom Designs 8 channel relay boards. pencom.png
Switch
0.85 Local Polling
/components/switch.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 daisy-chained 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 %} host: description: The IP address of the ethernet to serial adapter. It is assumed that the adapter has been preconfigured. required: true type: string port: description: The port of the ethernet to serial adapter. required: true type: port (positive integer between 1-65535) boards: description: Number of boards daisy-chained together (default is 1). required: false type: int between 1 and 8 relays: description: List of relays. required: true type: list keys: name: description: The name of the switch (component). required: true type: string addr: description: The relay on the board starting with 0. required: true type: int board: description: The board number (defaults to 1). required: false type: int between 1 and 8 {% endconfiguration %}