diff --git a/homeassistant/components/sensor/rpi_gpio.py b/homeassistant/components/sensor/rpi_gpio.py index 03e3482eb07..53039f96409 100644 --- a/homeassistant/components/sensor/rpi_gpio.py +++ b/homeassistant/components/sensor/rpi_gpio.py @@ -1,41 +1,10 @@ -# -*- coding: utf-8 -*- """ homeassistant.components.sensor.rpi_gpio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allows to configure a binary state sensor using RPi GPIO. -To avoid having to run Home Assistant as root when using this component, -run a Raspbian version released at or after September 29, 2015. -sensor: - platform: rpi_gpio - pull_mode: "UP" - value_high: "Active" - value_low: "Inactive" - ports: - 11: PIR Office - 12: PIR Bedroom - -Variables: - -pull_mode -*Optional -The internal pull to use (UP or DOWN). Default is UP. - -value_high -*Optional -The value of the sensor when the port is HIGH. Default is "HIGH". - -value_low -*Optional -The value of the sensor when the port is LOW. Default is "LOW". - -bouncetime -*Optional -The time in milliseconds for port debouncing. Default is 50ms. - -ports -*Required -An array specifying the GPIO ports to use and the name to use in the frontend. +For more details about this platform, please refer to the documentation at +https://home-assistant.io/components/sensor.rpi_gpio.html """ import logging from homeassistant.helpers.entity import Entity