Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.mobile_app.device_action Namespace Reference

Functions

None async_call_action_from_config (HomeAssistant hass, ConfigType config, TemplateVarsType variables, Context|None context)
 
dict[str, vol.Schema] async_get_action_capabilities (HomeAssistant hass, ConfigType config)
 
list[dict[str, str]] async_get_actions (HomeAssistant hass, str device_id)
 

Variables

 ACTION_SCHEMA
 

Detailed Description

Provides device actions for Mobile App.

Function Documentation

◆ async_call_action_from_config()

None homeassistant.components.mobile_app.device_action.async_call_action_from_config ( HomeAssistant  hass,
ConfigType  config,
TemplateVarsType  variables,
Context | None  context 
)
Execute a device action.

Definition at line 40 of file device_action.py.

◆ async_get_action_capabilities()

dict[str, vol.Schema] homeassistant.components.mobile_app.device_action.async_get_action_capabilities ( HomeAssistant  hass,
ConfigType   config 
)
List action capabilities.

Definition at line 80 of file device_action.py.

◆ async_get_actions()

list[dict[str, str]] homeassistant.components.mobile_app.device_action.async_get_actions ( HomeAssistant  hass,
str   device_id 
)
List device actions for Mobile App devices.

Definition at line 28 of file device_action.py.

Variable Documentation

◆ ACTION_SCHEMA

homeassistant.components.mobile_app.device_action.ACTION_SCHEMA
Initial value:
1 = cv.DEVICE_ACTION_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_TYPE): "notify",
4  vol.Required(notify.ATTR_MESSAGE): cv.template,
5  vol.Optional(notify.ATTR_TITLE): cv.template,
6  vol.Optional(notify.ATTR_DATA): cv.template_complex,
7  }
8 )

Definition at line 18 of file device_action.py.