3.2 KiB
title, description, ha_category, ha_release, ha_iot_class, ha_domain
title | description | ha_category | ha_release | ha_iot_class | ha_domain | |||
---|---|---|---|---|---|---|---|---|
BeagleBone Black GPIO | Instructions on how to integrate the GPIO capability of a BeagleBone Black into Home Assistant. |
|
0.36 | Local Push | bbb_gpio |
The bbb_gpio
integration is the base for all BeagleBone Black related GPIO platforms in Home Assistant.
There is no setup needed for the integration itself.
Binary Sensor
The bbb_gpio
binary sensor platform allows you to read sensor values of the GPIOs of your BeagleBone Black.
Configuration
To use your BeagleBone Black's GPIO in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
binary_sensor:
- platform: bbb_gpio
pins:
P8_12:
name: Door
GPIO0_26:
name: Window
{% configuration %}
pins:
description: List of used pins.
required: true
type: map
keys:
pin_name:
description: Port numbers and corresponding names.
required: true
type: map
keys:
name:
description: Friendly name to use for the frontend.
required: true
type: string
bouncetime:
description: Debounce time for reading input pin defined in milliseconds [ms].
required: false
type: integer
default: 50
invert_logic:
description: If true
, inverts the input logic to ACTIVE LOW
required: false
type: boolean
default: false
pull_mode:
description: Type of internal pull resistor connected to input. Options are UP
- pull-up resistor and DOWN
- pull-down resistor.
required: false
type: string
default: UP
{% endconfiguration %}
For more details about the GPIO layout, visit the article about the BeagleBone Black.
Switch
The bbb_gpio
switch platform allows you to control the GPIOs of your BeagleBone Black.
Configuration
To use your BeagleBone Black's GPIO in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
switch:
- platform: bbb_gpio
pins:
GPIO0_7:
name: LED Red
P9_12:
name: LED Green
{% configuration %}
pins:
description: List of used pins.
required: true
type: map
keys:
pin_name:
description: Port numbers and corresponding names.
required: true
type: map
keys:
name:
description: Friendly name to use for the frontend.
required: false
type: string
initial:
description: Initial state of the pin.
required: false
default: false
type: boolean
invert_logic:
description: If true
, inverts the input logic to ACTIVE LOW
required: false
default: false
type: boolean
{% endconfiguration %}
For more details about the GPIO layout, visit the article about the BeagleBone Black.