mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-31 07:16:47 +00:00
55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
---
|
|
layout: page
|
|
title: "PiFace Digital I/O Switch"
|
|
description: "Instructions on how to integrate the PiFace Digital I/O module into Home Assistant as a switch."
|
|
date: 2016-05-08 15:00
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
logo: raspberry-pi.png
|
|
ha_category: DIY
|
|
ha_release: 0.45
|
|
ha_iot_class: "Local Polling"
|
|
---
|
|
|
|
The `rpi_pfio` switch platform allows you to control the [PiFace Digital I/O](http://www.piface.org.uk/products/piface_digital/) module.
|
|
|
|
## {% linkable_title Configuration %}
|
|
|
|
To use your PiFace Digital I/O module in your installation, add the following to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
switch:
|
|
- platform: rpi_pfio
|
|
ports:
|
|
0:
|
|
name: Doorlock
|
|
invert_logic: true
|
|
1:
|
|
name: Light Desk
|
|
```
|
|
|
|
{% configuration %}
|
|
ports:
|
|
description: Array of used ports.
|
|
required: true
|
|
type: list
|
|
keys:
|
|
num:
|
|
description: Port number.
|
|
required: true
|
|
type: list
|
|
keys:
|
|
name:
|
|
description: Port name.
|
|
required: true
|
|
type: string
|
|
invert_logic:
|
|
description: If true, inverts the output logic to ACTIVE LOW.
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
{% endconfiguration %}
|