mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Update BeagleBone configuration variables (#6608)
* Update BeagleBone config variables * Fixed wrong type * change type for pin_name
This commit is contained in:
parent
ee99916d09
commit
834ca3a007
@ -30,14 +30,36 @@ binary_sensor:
|
|||||||
name: Window
|
name: Window
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
pins:
|
||||||
- **pins** array (*Required*): Array of used pins.
|
description: List of used pins.
|
||||||
- **pin_name** (*Required*): Pin numbers and corresponding names.
|
required: true
|
||||||
- **name** (*Required*): Friendly name to use for the frontend.
|
type: map
|
||||||
- **bouncetime** (*Optional*): Debounce time for reading input pin defined in milliseconds [ms]. Defaults to `50 ms`.
|
keys:
|
||||||
- **invert_logic** (*Optional*): If `true`, inverts the input logic to ACTIVE LOW. Default is `false` (ACTIVE HIGH).
|
pin_name:
|
||||||
- **pull_mode** (*Optional*): Type of internal pull resistor connected to input. Options are `UP` - pull-up resistor and `DOWN` - pull-down resistor. Defaults to `UP`.
|
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
|
||||||
|
default: 50
|
||||||
|
type: integer
|
||||||
|
invert_logic:
|
||||||
|
description: If `true`, inverts the input logic to ACTIVE LOW
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
pull_mode:
|
||||||
|
description: Type of internal pull resistor connected to input. Options are `UP` - pull-up resistor and `DOWN` - pull-down resistor.
|
||||||
|
required: false
|
||||||
|
default: UP
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
For more details about the GPIO layout, visit the [article](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black.
|
For more details about the GPIO layout, visit the [article](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black.
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ The `bbb_gpio` switch platform allows you to control the GPIOs of your [BeagleBo
|
|||||||
|
|
||||||
## {% linkable_title Configuration %}
|
## {% linkable_title Configuration %}
|
||||||
|
|
||||||
To use yourBeagleBone Black's GPIO in your installation, add the following to your `configuration.yaml` file:
|
To use your BeagleBone Black's GPIO in your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
@ -30,13 +30,31 @@ switch:
|
|||||||
name: LED Green
|
name: LED Green
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
pins:
|
||||||
- **pins** array (*Required*): Array of used ports.
|
description: List of used pins.
|
||||||
- **pin_name** (*Required*): Port numbers and corresponding names.
|
required: true
|
||||||
- **name** (*Optional*): Friendly name to use for the frontend.
|
type: map
|
||||||
- **initial** (*Optional*): Initial state of the pin. Defaults to `False`.
|
keys:
|
||||||
- **invert_logic** (*Optional*): If true, inverts the output logic to ACTIVE LOW. Default is `false` (ACTIVE HIGH).
|
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](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black.
|
For more details about the GPIO layout, visit the [article](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user