From effc2cb90408e1503d9345f21f8470a47fa08ebf Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Wed, 30 Jan 2019 08:32:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9C=20Merges/Redirect=20BeagleBone=20B?= =?UTF-8?q?lack=20GPIO=20component=20pages=20(#8337)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_components/bbb_gpio.markdown | 111 +++++++++++++++++- .../binary_sensor.bbb_gpio.markdown | 65 ---------- source/_components/switch.bbb_gpio.markdown | 60 ---------- 3 files changed, 109 insertions(+), 127 deletions(-) delete mode 100644 source/_components/binary_sensor.bbb_gpio.markdown delete mode 100644 source/_components/switch.bbb_gpio.markdown diff --git a/source/_components/bbb_gpio.markdown b/source/_components/bbb_gpio.markdown index cb9f7a4c0dc..285f6bcdb7c 100644 --- a/source/_components/bbb_gpio.markdown +++ b/source/_components/bbb_gpio.markdown @@ -8,10 +8,117 @@ comments: false sharing: true footer: true logo: beaglebone-black.png -ha_category: DIY +ha_category: + - DIY + - Binary Sensor + - Switch ha_release: 0.36 ha_iot_class: "Local Push" +redirect_from: + - /components/binary_sensor.bbb_gpio/ + - /components/switch.bbb_gpio/ --- The `bbb_gpio` component is the base for all [BeagleBone Black](https://beagleboard.org/black) related GPIO platforms in Home Assistant. -There is no setup needed for the component itself, for the platforms please check their corresponding pages. +There is no setup needed for the component itself. + +## {% linkable_title Binary Sensor %} + +The `bbb_gpio` binary sensor platform allows you to read sensor values of the GPIOs of your [BeagleBone Black](https://beagleboard.org/black). + +## {% linkable_title Configuration %} + +To use your BeagleBone Black's GPIO in your installation, add the following to your `configuration.yaml` file: + +```yaml +# 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](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black. + +## {% linkable_title Switch %} + +The `bbb_gpio` switch platform allows you to control the GPIOs of your [BeagleBone Black](https://beagleboard.org/black). + +## {% linkable_title Configuration %} + +To use your BeagleBone Black's GPIO in your installation, add the following to your `configuration.yaml` file: + +```yaml +# 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](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black. \ No newline at end of file diff --git a/source/_components/binary_sensor.bbb_gpio.markdown b/source/_components/binary_sensor.bbb_gpio.markdown deleted file mode 100644 index 069c6c9eb1d..00000000000 --- a/source/_components/binary_sensor.bbb_gpio.markdown +++ /dev/null @@ -1,65 +0,0 @@ ---- -layout: page -title: "BeagleBone Black GPIO Binary Sensor" -description: "Instructions on how to integrate the GPIO sensor capability of a BeagleBone Black into Home Assistant." -date: 2017-01-14 10:00 -sidebar: true -comments: false -sharing: true -footer: true -logo: beaglebone-black.png -ha_category: DIY -ha_release: 0.37 -ha_iot_class: "Local Push" ---- - -The `bbb_gpio` binary sensor platform allows you to read sensor values of the GPIOs of your [BeagleBone Black](https://beagleboard.org/black). - -## {% linkable_title Configuration %} - -To use your BeagleBone Black's GPIO in your installation, add the following to your `configuration.yaml` file: - -```yaml -# 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](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black. diff --git a/source/_components/switch.bbb_gpio.markdown b/source/_components/switch.bbb_gpio.markdown deleted file mode 100644 index 6efd8f88159..00000000000 --- a/source/_components/switch.bbb_gpio.markdown +++ /dev/null @@ -1,60 +0,0 @@ ---- -layout: page -title: "BeagleBone Black GPIO Switch" -description: "Instructions on how to integrate the GPIO of a BeagleBone Black into Home Assistant as a switch." -date: 2017-01-14 10:00 -sidebar: true -comments: false -sharing: true -footer: true -logo: beaglebone-black.png -ha_category: DIY -ha_release: 0.36 -ha_iot_class: "Local Push" ---- - -The `bbb_gpio` switch platform allows you to control the GPIOs of your [BeagleBone Black](https://beagleboard.org/black). - -## {% linkable_title Configuration %} - -To use your BeagleBone Black's GPIO in your installation, add the following to your `configuration.yaml` file: - -```yaml -# 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](http://elinux.org/Beagleboard:BeagleBoneBlack) about the BeagleBone Black.