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

Classes

class  CommandBinarySensor
 

Functions

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

Variables

string DEFAULT_NAME = "Binary Command Sensor"
 
string DEFAULT_PAYLOAD_OFF = "OFF"
 
string DEFAULT_PAYLOAD_ON = "ON"
 
 SCAN_INTERVAL = timedelta(seconds=60)
 

Detailed Description

Support for custom shell commands to retrieve values.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.command_line.binary_sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Command line Binary Sensor.

Definition at line 36 of file binary_sensor.py.

Variable Documentation

◆ DEFAULT_NAME

string homeassistant.components.command_line.binary_sensor.DEFAULT_NAME = "Binary Command Sensor"

Definition at line 29 of file binary_sensor.py.

◆ DEFAULT_PAYLOAD_OFF

string homeassistant.components.command_line.binary_sensor.DEFAULT_PAYLOAD_OFF = "OFF"

Definition at line 31 of file binary_sensor.py.

◆ DEFAULT_PAYLOAD_ON

string homeassistant.components.command_line.binary_sensor.DEFAULT_PAYLOAD_ON = "ON"

Definition at line 30 of file binary_sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.command_line.binary_sensor.SCAN_INTERVAL = timedelta(seconds=60)

Definition at line 33 of file binary_sensor.py.