PiFace Digital I/O Binary Sensor


The rpi_pfio binary sensor platform allows you to read sensor values of the PiFace Digital I/O .

Configuration

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

# Example configuration.yaml entry
binary_sensor:
  - platform: rpi_pfio
    ports:
      0:
        name: PIR Office
        invert_logic: true
      1:
        name: Doorbell
        settle_time: 50

Configuration Variables

ports

(map)(Required)List of used ports.

num

(map)(Required)The port number.

name

(string)(Required)The port name.

settle_time

(integer)(Optional)The time in milliseconds for port debouncing.

Default value: 20

invert_logic

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

Default value: false (ACTIVE HIGH)