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

Functions

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

Variables

 CURRENT_TRIGGER_SCHEMA
 
 HUMIDIFIER_TRIGGER_SCHEMA
 
 TRIGGER_SCHEMA
 

Detailed Description

Provides device automations for Climate.

Function Documentation

◆ async_attach_trigger()

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

Definition at line 110 of file device_trigger.py.

◆ async_get_trigger_capabilities()

dict[str, vol.Schema] homeassistant.components.humidifier.device_trigger.async_get_trigger_capabilities ( HomeAssistant  hass,
ConfigType   config 
)
List trigger capabilities.

Definition at line 156 of file device_trigger.py.

◆ async_get_triggers()

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

Definition at line 70 of file device_trigger.py.

Variable Documentation

◆ CURRENT_TRIGGER_SCHEMA

homeassistant.components.humidifier.device_trigger.CURRENT_TRIGGER_SCHEMA
Initial value:
1 = vol.All(
2  DEVICE_TRIGGER_BASE_SCHEMA.extend(
3  {
4  vol.Required(CONF_ENTITY_ID): cv.entity_id_or_uuid,
5  vol.Required(CONF_TYPE): "current_humidity_changed",
6  vol.Optional(CONF_BELOW): vol.Any(vol.Coerce(float)),
7  vol.Optional(CONF_ABOVE): vol.Any(vol.Coerce(float)),
8  vol.Optional(CONF_FOR): cv.positive_time_period_dict,
9  }
10  ),
11  cv.has_at_least_one_key(CONF_BELOW, CONF_ABOVE),
12 )

Definition at line 34 of file device_trigger.py.

◆ HUMIDIFIER_TRIGGER_SCHEMA

homeassistant.components.humidifier.device_trigger.HUMIDIFIER_TRIGGER_SCHEMA
Initial value:
1 = vol.All(
2  DEVICE_TRIGGER_BASE_SCHEMA.extend(
3  {
4  vol.Required(CONF_ENTITY_ID): cv.entity_id_or_uuid,
5  vol.Required(CONF_TYPE): "target_humidity_changed",
6  vol.Optional(CONF_BELOW): vol.Any(vol.Coerce(int)),
7  vol.Optional(CONF_ABOVE): vol.Any(vol.Coerce(int)),
8  vol.Optional(CONF_FOR): cv.positive_time_period_dict,
9  }
10  ),
11  cv.has_at_least_one_key(CONF_BELOW, CONF_ABOVE),
12 )

Definition at line 47 of file device_trigger.py.

◆ TRIGGER_SCHEMA

homeassistant.components.humidifier.device_trigger.TRIGGER_SCHEMA
Initial value:
1 = vol.All(
2  vol.Any(
3  CURRENT_TRIGGER_SCHEMA,
4  HUMIDIFIER_TRIGGER_SCHEMA,
5  toggle_entity.TRIGGER_SCHEMA,
6  ),
7  vol.Schema({vol.Required(CONF_DOMAIN): DOMAIN}, extra=vol.ALLOW_EXTRA),
8 )

Definition at line 60 of file device_trigger.py.