PiFace Digital I/O Switch


The rpi_pfio switch platform allows you to control the PiFace Digital I/O module.

Configuration

To use your PiFace Digital I/O module in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
switch:
  - platform: rpi_pfio
    ports:
      0:
        name: Doorlock
        invert_logic: true
      1:
        name: Light Desk

Configuration Variables

ports

(list)(Required)Array of used ports.

num

(list)(Required)Port number.

name

(string)(Required)Port name.

invert_logic

(boolean)(Optional)If true, inverts the output logic to ACTIVE LOW.

Default value: false