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

Functions

None append_input_triggers (list[dict[str, str]] triggers, list[tuple[str, str]] input_triggers, str device_id)
 
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

 Final
 

Detailed Description

Provides device triggers for Shelly.

Function Documentation

◆ append_input_triggers()

None homeassistant.components.shelly.device_trigger.append_input_triggers ( list[dict[str, str]]  triggers,
list[tuple[str, str]]  input_triggers,
str  device_id 
)
Add trigger to triggers list.

Definition at line 57 of file device_trigger.py.

◆ async_attach_trigger()

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

Definition at line 143 of file device_trigger.py.

◆ async_get_triggers()

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

Definition at line 112 of file device_trigger.py.

◆ async_validate_trigger_config()

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

Definition at line 75 of file device_trigger.py.

Variable Documentation

◆ Final

homeassistant.components.shelly.device_trigger.Final

Definition at line 47 of file device_trigger.py.