home-assistant.io/source/_components/switch.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.0 KiB

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

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

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 array (Required): Array of used ports.
    • num (Required): Port number.
      • name (Required): Port name.
      • invert_logic (Optional): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).