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

Classes

class  RestBinarySensor
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 
tuple TRIGGER_ENTITY_OPTIONS
 

Detailed Description

Support for RESTful binary sensors.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.rest.binary_sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the REST binary sensor.

Definition at line 61 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.rest.binary_sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 45 of file binary_sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.rest.binary_sensor.PLATFORM_SCHEMA
Initial value:
1 = vol.All(
2  BINARY_SENSOR_PLATFORM_SCHEMA.extend({**RESOURCE_SCHEMA, **BINARY_SENSOR_SCHEMA}),
3  cv.has_at_least_one_key(CONF_RESOURCE, CONF_RESOURCE_TEMPLATE),
4 )

Definition at line 47 of file binary_sensor.py.

◆ TRIGGER_ENTITY_OPTIONS

tuple homeassistant.components.rest.binary_sensor.TRIGGER_ENTITY_OPTIONS
Initial value:
1 = (
2  CONF_AVAILABILITY,
3  CONF_DEVICE_CLASS,
4  CONF_ICON,
5  CONF_PICTURE,
6  CONF_UNIQUE_ID,
7 )

Definition at line 52 of file binary_sensor.py.