Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.rfxtrx.device_trigger Namespace Reference

Functions

CALLBACK_TYPE async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 
list[dict[str, str]] async_get_triggers (HomeAssistant hass, str device_id)
 
ConfigType async_validate_trigger_config (HomeAssistant hass, ConfigType config)
 

Variables

string CONF_SUBTYPE = "subtype"
 
string CONF_TYPE_COMMAND = "command"
 
string CONF_TYPE_STATUS = "status"
 
 TRIGGER_SCHEMA
 
dictionary TRIGGER_SELECTION
 
list TRIGGER_TYPES
 

Detailed Description

Provides device automations for RFXCOM RFXtrx.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.rfxtrx.device_trigger.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Attach a trigger.

Definition at line 86 of file device_trigger.py.

◆ async_get_triggers()

list[dict[str, str]] homeassistant.components.rfxtrx.device_trigger.async_get_triggers ( HomeAssistant  hass,
str   device_id 
)
List device triggers for RFXCOM RFXtrx devices.

Definition at line 48 of file device_trigger.py.

◆ async_validate_trigger_config()

ConfigType homeassistant.components.rfxtrx.device_trigger.async_validate_trigger_config ( HomeAssistant  hass,
ConfigType   config 
)
Validate config.

Definition at line 67 of file device_trigger.py.

Variable Documentation

◆ CONF_SUBTYPE

string homeassistant.components.rfxtrx.device_trigger.CONF_SUBTYPE = "subtype"

Definition at line 27 of file device_trigger.py.

◆ CONF_TYPE_COMMAND

string homeassistant.components.rfxtrx.device_trigger.CONF_TYPE_COMMAND = "command"

Definition at line 29 of file device_trigger.py.

◆ CONF_TYPE_STATUS

string homeassistant.components.rfxtrx.device_trigger.CONF_TYPE_STATUS = "status"

Definition at line 30 of file device_trigger.py.

◆ TRIGGER_SCHEMA

homeassistant.components.rfxtrx.device_trigger.TRIGGER_SCHEMA
Initial value:
1 = DEVICE_TRIGGER_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_TYPE): vol.In(TRIGGER_TYPES),
4  vol.Required(CONF_SUBTYPE): str,
5  }
6 )

Definition at line 40 of file device_trigger.py.

◆ TRIGGER_SELECTION

dictionary homeassistant.components.rfxtrx.device_trigger.TRIGGER_SELECTION
Initial value:
1 = {
2  CONF_TYPE_COMMAND: "COMMANDS",
3  CONF_TYPE_STATUS: "STATUS",
4 }

Definition at line 32 of file device_trigger.py.

◆ TRIGGER_TYPES

list homeassistant.components.rfxtrx.device_trigger.TRIGGER_TYPES
Initial value:
1 = [
2  CONF_TYPE_COMMAND,
3  CONF_TYPE_STATUS,
4 ]

Definition at line 36 of file device_trigger.py.