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

Classes

class  ArestBinarySensor
 
class  ArestData
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
 MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=30)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for an exposed aREST RESTful API of a device.

Function Documentation

◆ setup_platform()

None homeassistant.components.arest.binary_sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the aREST binary sensor.

Definition at line 38 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 24 of file binary_sensor.py.

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.arest.binary_sensor.MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=30)

Definition at line 26 of file binary_sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.arest.binary_sensor.PLATFORM_SCHEMA
Initial value:
1 = BINARY_SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_RESOURCE): cv.url,
4  vol.Optional(CONF_NAME): cv.string,
5  vol.Required(CONF_PIN): cv.string,
6  vol.Optional(CONF_DEVICE_CLASS): DEVICE_CLASSES_SCHEMA,
7  }
8 )

Definition at line 28 of file binary_sensor.py.