Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.homeassistant.triggers.homeassistant Namespace Reference

Functions

CALLBACK_TYPE async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 

Variables

string EVENT_SHUTDOWN = "shutdown"
 
string EVENT_START = "start"
 
 TRIGGER_SCHEMA
 

Detailed Description

Offer Home Assistant core automation rules.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.homeassistant.triggers.homeassistant.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Listen for events based on configuration.

Definition at line 24 of file homeassistant.py.

Variable Documentation

◆ EVENT_SHUTDOWN

string homeassistant.components.homeassistant.triggers.homeassistant.EVENT_SHUTDOWN = "shutdown"

Definition at line 14 of file homeassistant.py.

◆ EVENT_START

string homeassistant.components.homeassistant.triggers.homeassistant.EVENT_START = "start"

Definition at line 13 of file homeassistant.py.

◆ TRIGGER_SCHEMA

homeassistant.components.homeassistant.triggers.homeassistant.TRIGGER_SCHEMA
Initial value:
1 = cv.TRIGGER_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_PLATFORM): DOMAIN,
4  vol.Required(CONF_EVENT): vol.Any(EVENT_START, EVENT_SHUTDOWN),
5  }
6 )

Definition at line 16 of file homeassistant.py.