home-assistant.io/source/_components/binary_sensor.rpi_pfio.markdown
Alok Saboo 1aca7b08cf Misc fixes: e.g. -> e.g., and proper case for Home Assistant (#4942)
* e.g. to e.g., and proper case for Home Assistant

* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00

1.2 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page PiFace Digital I/O Binary Sensor Instructions on how to integrate the PiFace Digital I/O module into Home Assistant as a binary sensor. 2016-05-08 15:00 true false true true raspberry-pi.png Binary Sensor 0.45 Local Push

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

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 array (Required): Array of used ports.
    • num (Required): Port number.
      • name (Required): Port name.
      • settle_time (Optional): The time in milliseconds for port debouncing. Default is 2 0ms.
      • invert_logic (Optional): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).