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

Classes

class  RemoteRPiGPIOSwitch
 

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

Allows to configure a switch using RPi GPIO.

Function Documentation

◆ setup_platform()

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

Definition at line 34 of file switch.py.

Variable Documentation

◆ _SENSORS_SCHEMA

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

Definition at line 23 of file switch.py.

◆ CONF_PORTS

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

Definition at line 21 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.remote_rpi_gpio.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_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  }
7 )

Definition at line 25 of file switch.py.