Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.remote_rpi_gpio.binary_sensor Namespace Reference

Classes

class  RemoteRPiGPIOBinarySensor
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _SENSORS_SCHEMA = vol.Schema({cv.positive_int: cv.string})
 
string CONF_PORTS = "ports"
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for binary sensor using RPi GPIO.

Function Documentation

◆ setup_platform()

None homeassistant.components.remote_rpi_gpio.binary_sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Raspberry PI GPIO devices.

Definition at line 44 of file binary_sensor.py.

Variable Documentation

◆ _SENSORS_SCHEMA

homeassistant.components.remote_rpi_gpio.binary_sensor._SENSORS_SCHEMA = vol.Schema({cv.positive_int: cv.string})
private

Definition at line 31 of file binary_sensor.py.

◆ CONF_PORTS

string homeassistant.components.remote_rpi_gpio.binary_sensor.CONF_PORTS = "ports"

Definition at line 29 of file binary_sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.remote_rpi_gpio.binary_sensor.PLATFORM_SCHEMA
Initial value:
1 = BINARY_SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_PORTS): _SENSORS_SCHEMA,
5  vol.Optional(CONF_INVERT_LOGIC, default=DEFAULT_INVERT_LOGIC): cv.boolean,
6  vol.Optional(CONF_BOUNCETIME, default=DEFAULT_BOUNCETIME): cv.positive_int,
7  vol.Optional(CONF_PULL_MODE, default=DEFAULT_PULL_MODE): cv.string,
8  }
9 )

Definition at line 33 of file binary_sensor.py.