Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.trigger_template_entity Namespace Reference

Classes

class  ManualTriggerEntity
 
class  ManualTriggerSensorEntity
 
class  TriggerBaseEntity
 

Functions

vol.Schema make_template_entity_base_schema (str default_name)
 

Variables

string CONF_ATTRIBUTES = "attributes"
 
string CONF_AVAILABILITY = "availability"
 
string CONF_PICTURE = "picture"
 
dictionary CONF_TO_ATTRIBUTE
 
 TEMPLATE_ENTITY_BASE_SCHEMA
 
 TEMPLATE_SENSOR_BASE_SCHEMA
 

Detailed Description

TemplateEntity utility class.

Function Documentation

◆ make_template_entity_base_schema()

vol.Schema homeassistant.helpers.trigger_template_entity.make_template_entity_base_schema ( str  default_name)
Return a schema with default name.

Definition at line 56 of file trigger_template_entity.py.

Variable Documentation

◆ CONF_ATTRIBUTES

string homeassistant.helpers.trigger_template_entity.CONF_ATTRIBUTES = "attributes"

Definition at line 37 of file trigger_template_entity.py.

◆ CONF_AVAILABILITY

string homeassistant.helpers.trigger_template_entity.CONF_AVAILABILITY = "availability"

Definition at line 36 of file trigger_template_entity.py.

◆ CONF_PICTURE

string homeassistant.helpers.trigger_template_entity.CONF_PICTURE = "picture"

Definition at line 38 of file trigger_template_entity.py.

◆ CONF_TO_ATTRIBUTE

dictionary homeassistant.helpers.trigger_template_entity.CONF_TO_ATTRIBUTE
Initial value:
1 = {
2  CONF_ICON: ATTR_ICON,
3  CONF_NAME: ATTR_FRIENDLY_NAME,
4  CONF_PICTURE: ATTR_ENTITY_PICTURE,
5 }

Definition at line 40 of file trigger_template_entity.py.

◆ TEMPLATE_ENTITY_BASE_SCHEMA

homeassistant.helpers.trigger_template_entity.TEMPLATE_ENTITY_BASE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Optional(CONF_ICON): cv.template,
4  vol.Optional(CONF_NAME): cv.template,
5  vol.Optional(CONF_PICTURE): cv.template,
6  vol.Optional(CONF_UNIQUE_ID): cv.string,
7  }
8 )

Definition at line 46 of file trigger_template_entity.py.

◆ TEMPLATE_SENSOR_BASE_SCHEMA

homeassistant.helpers.trigger_template_entity.TEMPLATE_SENSOR_BASE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Optional(CONF_DEVICE_CLASS): DEVICE_CLASSES_SCHEMA,
4  vol.Optional(CONF_STATE_CLASS): STATE_CLASSES_SCHEMA,
5  vol.Optional(CONF_UNIT_OF_MEASUREMENT): cv.string,
6  }
7 ).extend(TEMPLATE_ENTITY_BASE_SCHEMA.schema)

Definition at line 68 of file trigger_template_entity.py.