Home Assistant Unofficial Reference 2024.12.1
condition.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.helpers.condition.ConditionProtocol
 

Namespaces

 homeassistant.helpers.condition
 

Functions

ConditionProtocol|None homeassistant.helpers.condition._async_get_condition_platform (HomeAssistant hass, ConfigType config)
 
ConditionCheckerType homeassistant.helpers.condition.async_and_from_config (HomeAssistant hass, ConfigType config)
 
Callable[[TemplateVarsType], bool] homeassistant.helpers.condition.async_conditions_from_config (HomeAssistant hass, list[ConfigType] condition_configs, logging.Logger logger, str name)
 
set[str] homeassistant.helpers.condition.async_extract_devices (ConfigType|Template config)
 
set[str] homeassistant.helpers.condition.async_extract_entities (ConfigType|Template config)
 
ConditionCheckerType homeassistant.helpers.condition.async_from_config (HomeAssistant hass, ConfigType config)
 
ConditionCheckerType homeassistant.helpers.condition.async_not_from_config (HomeAssistant hass, ConfigType config)
 
bool homeassistant.helpers.condition.async_numeric_state (HomeAssistant hass, str|State|None entity, float|str|None below=None, float|str|None above=None, Template|None value_template=None, TemplateVarsType variables=None, str|None attribute=None)
 
ConditionCheckerType homeassistant.helpers.condition.async_numeric_state_from_config (ConfigType config)
 
ConditionCheckerType homeassistant.helpers.condition.async_or_from_config (HomeAssistant hass, ConfigType config)
 
bool homeassistant.helpers.condition.async_template (HomeAssistant hass, Template value_template, TemplateVarsType variables=None, bool trace_result=True)
 
ConditionCheckerType homeassistant.helpers.condition.async_template_from_config (ConfigType config)
 
ConditionCheckerType homeassistant.helpers.condition.async_trigger_from_config (HomeAssistant hass, ConfigType config)
 
ConfigType homeassistant.helpers.condition.async_validate_condition_config (HomeAssistant hass, ConfigType config)
 
list[ConfigType|Template] homeassistant.helpers.condition.async_validate_conditions_config (HomeAssistant hass, list[ConfigType] conditions)
 
TraceElement homeassistant.helpers.condition.condition_trace_append (TemplateVarsType variables, str path)
 
None homeassistant.helpers.condition.condition_trace_set_result (bool result, **Any kwargs)
 
None homeassistant.helpers.condition.condition_trace_update_result (**Any kwargs)
 
bool homeassistant.helpers.condition.numeric_state (HomeAssistant hass, str|State|None entity, float|str|None below=None, float|str|None above=None, Template|None value_template=None, TemplateVarsType variables=None)
 
ConfigType homeassistant.helpers.condition.numeric_state_validate_config (HomeAssistant hass, ConfigType config)
 
bool homeassistant.helpers.condition.state (HomeAssistant hass, str|State|None entity, Any req_state, timedelta|None for_period=None, str|None attribute=None, TemplateVarsType variables=None)
 
ConditionCheckerType homeassistant.helpers.condition.state_from_config (ConfigType config)
 
ConfigType homeassistant.helpers.condition.state_validate_config (HomeAssistant hass, ConfigType config)
 
bool homeassistant.helpers.condition.sun (HomeAssistant hass, str|None before=None, str|None after=None, timedelta|None before_offset=None, timedelta|None after_offset=None)
 
ConditionCheckerType homeassistant.helpers.condition.sun_from_config (ConfigType config)
 
bool homeassistant.helpers.condition.template (HomeAssistant hass, Template value_template, TemplateVarsType variables=None)
 
bool homeassistant.helpers.condition.time (HomeAssistant hass, dt_time|str|None before=None, dt_time|str|None after=None, str|Container[str]|None weekday=None)
 
ConditionCheckerType homeassistant.helpers.condition.time_from_config (ConfigType config)
 
Generator[TraceElement] homeassistant.helpers.condition.trace_condition (TemplateVarsType variables)
 
ConditionCheckerType homeassistant.helpers.condition.trace_condition_function (ConditionCheckerType condition)
 
bool homeassistant.helpers.condition.zone (HomeAssistant hass, str|State|None zone_ent, str|State|None entity)
 
ConditionCheckerType homeassistant.helpers.condition.zone_from_config (ConfigType config)
 

Variables

dictionary homeassistant.helpers.condition._PLATFORM_ALIASES
 
string homeassistant.helpers.condition.ASYNC_FROM_CONFIG_FORMAT = "async_{}_from_config"
 
 homeassistant.helpers.condition.ConditionCheckerType
 
string homeassistant.helpers.condition.FROM_CONFIG_FORMAT = "{}_from_config"
 
 homeassistant.helpers.condition.INPUT_ENTITY_ID
 
string homeassistant.helpers.condition.VALIDATE_CONFIG_FORMAT = "{}_validate_config"