Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.litejet.trigger Namespace Reference

Functions

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

Variables

string CONF_HELD_LESS_THAN = "held_less_than"
 
string CONF_HELD_MORE_THAN = "held_more_than"
 
string CONF_NUMBER = "number"
 
 TRIGGER_SCHEMA
 

Detailed Description

Trigger an automation when a LiteJet switch is released.

Function Documentation

◆ async_attach_trigger()

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

Definition at line 40 of file trigger.py.

Variable Documentation

◆ CONF_HELD_LESS_THAN

string homeassistant.components.litejet.trigger.CONF_HELD_LESS_THAN = "held_less_than"

Definition at line 24 of file trigger.py.

◆ CONF_HELD_MORE_THAN

string homeassistant.components.litejet.trigger.CONF_HELD_MORE_THAN = "held_more_than"

Definition at line 23 of file trigger.py.

◆ CONF_NUMBER

string homeassistant.components.litejet.trigger.CONF_NUMBER = "number"

Definition at line 22 of file trigger.py.

◆ TRIGGER_SCHEMA

homeassistant.components.litejet.trigger.TRIGGER_SCHEMA
Initial value:
1 = cv.TRIGGER_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_PLATFORM): "litejet",
4  vol.Required(CONF_NUMBER): cv.positive_int,
5  vol.Optional(CONF_HELD_MORE_THAN): vol.All(
6  cv.time_period, cv.positive_timedelta
7  ),
8  vol.Optional(CONF_HELD_LESS_THAN): vol.All(
9  cv.time_period, cv.positive_timedelta
10  ),
11  }
12 )

Definition at line 26 of file trigger.py.