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

Classes

class  CommandSensor
 
class  CommandSensorData
 

Functions

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

Variables

string DEFAULT_NAME = "Command Sensor"
 
 SCAN_INTERVAL = timedelta(seconds=60)
 

Detailed Description

Allows to configure custom shell commands to turn a value for a sensor.

Function Documentation

◆ async_setup_platform()

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

Definition at line 44 of file sensor.py.

Variable Documentation

◆ DEFAULT_NAME

string homeassistant.components.command_line.sensor.DEFAULT_NAME = "Command Sensor"

Definition at line 39 of file sensor.py.

◆ SCAN_INTERVAL

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

Definition at line 41 of file sensor.py.