mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-01 16:57:34 +00:00

* e.g. to e.g., and proper case for Home Assistant * Instructions how to -> Instructions on how to
1.0 KiB
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).
- num (Required): Port number.