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

Variables

string CONF_COMMAND_TIMEOUT = "command_timeout"
 
string CONF_JSON_ATTRIBUTES = "json_attributes"
 
string CONF_JSON_ATTRIBUTES_PATH = "json_attributes_path"
 
int DEFAULT_TIMEOUT = 15
 
string DOMAIN = "command_line"
 
 LOGGER = logging.getLogger(__package__)
 
list PLATFORMS
 
dictionary TRIGGER_ENTITY_OPTIONS
 

Detailed Description

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

Variable Documentation

◆ CONF_COMMAND_TIMEOUT

string homeassistant.components.command_line.const.CONF_COMMAND_TIMEOUT = "command_timeout"

Definition at line 20 of file const.py.

◆ CONF_JSON_ATTRIBUTES

string homeassistant.components.command_line.const.CONF_JSON_ATTRIBUTES = "json_attributes"

Definition at line 21 of file const.py.

◆ CONF_JSON_ATTRIBUTES_PATH

string homeassistant.components.command_line.const.CONF_JSON_ATTRIBUTES_PATH = "json_attributes_path"

Definition at line 22 of file const.py.

◆ DEFAULT_TIMEOUT

int homeassistant.components.command_line.const.DEFAULT_TIMEOUT = 15

Definition at line 23 of file const.py.

◆ DOMAIN

string homeassistant.components.command_line.const.DOMAIN = "command_line"

Definition at line 24 of file const.py.

◆ LOGGER

homeassistant.components.command_line.const.LOGGER = logging.getLogger(__package__)

Definition at line 18 of file const.py.

◆ PLATFORMS

list homeassistant.components.command_line.const.PLATFORMS
Initial value:
1 = [
2  Platform.BINARY_SENSOR,
3  Platform.COVER,
4  Platform.SENSOR,
5  Platform.SWITCH,
6 ]

Definition at line 25 of file const.py.

◆ TRIGGER_ENTITY_OPTIONS

dictionary homeassistant.components.command_line.const.TRIGGER_ENTITY_OPTIONS
Initial value:
1 = {
2  CONF_AVAILABILITY,
3  CONF_DEVICE_CLASS,
4  CONF_ICON,
5  CONF_PICTURE,
6  CONF_STATE_CLASS,
7  CONF_UNIQUE_ID,
8  CONF_UNIT_OF_MEASUREMENT,
9 }

Definition at line 32 of file const.py.