Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.nanoleaf.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)
 

Variables

 TRIGGER_SCHEMA
 
 TRIGGER_TYPES = TOUCH_GESTURE_TRIGGER_MAP.values()
 

Detailed Description

Provides device triggers for Nanoleaf.

Function Documentation

◆ async_attach_trigger()

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

Definition at line 59 of file device_trigger.py.

◆ async_get_triggers()

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

Definition at line 38 of file device_trigger.py.

Variable Documentation

◆ TRIGGER_SCHEMA

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

Definition at line 29 of file device_trigger.py.

◆ TRIGGER_TYPES

homeassistant.components.nanoleaf.device_trigger.TRIGGER_TYPES = TOUCH_GESTURE_TRIGGER_MAP.values()

Definition at line 27 of file device_trigger.py.