Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.netatmo.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)
 
ConfigType async_validate_trigger_config (HomeAssistant hass, ConfigType config)
 

Variables

string CONF_SUBTYPE = "subtype"
 
dictionary DEVICES
 
dictionary SUBTYPES
 
 TRIGGER_SCHEMA
 
 TRIGGER_TYPES = OUTDOOR_CAMERA_TRIGGERS + INDOOR_CAMERA_TRIGGERS + CLIMATE_TRIGGERS
 

Detailed Description

Provides device automations for Netatmo.

Function Documentation

◆ async_attach_trigger()

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

Definition at line 134 of file device_trigger.py.

◆ async_get_triggers()

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

Definition at line 93 of file device_trigger.py.

◆ async_validate_trigger_config()

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

Definition at line 67 of file device_trigger.py.

Variable Documentation

◆ CONF_SUBTYPE

string homeassistant.components.netatmo.device_trigger.CONF_SUBTYPE = "subtype"

Definition at line 39 of file device_trigger.py.

◆ DEVICES

dictionary homeassistant.components.netatmo.device_trigger.DEVICES
Initial value:
1 = {
2  "Smart Indoor Camera": INDOOR_CAMERA_TRIGGERS,
3  "Smart Outdoor Camera": OUTDOOR_CAMERA_TRIGGERS,
4  "Smart Thermostat": CLIMATE_TRIGGERS,
5  "Smart Valve": CLIMATE_TRIGGERS,
6 }

Definition at line 41 of file device_trigger.py.

◆ SUBTYPES

dictionary homeassistant.components.netatmo.device_trigger.SUBTYPES
Initial value:
1 = {
2  EVENT_TYPE_THERM_MODE: [
3  STATE_NETATMO_SCHEDULE,
4  STATE_NETATMO_HG,
5  STATE_NETATMO_AWAY,
6  ]
7 }

Definition at line 48 of file device_trigger.py.

◆ TRIGGER_SCHEMA

homeassistant.components.netatmo.device_trigger.TRIGGER_SCHEMA
Initial value:
1 = DEVICE_TRIGGER_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_ENTITY_ID): cv.entity_id_or_uuid,
4  vol.Required(CONF_TYPE): vol.In(TRIGGER_TYPES),
5  vol.Optional(CONF_SUBTYPE): str,
6  }
7 )

Definition at line 58 of file device_trigger.py.

◆ TRIGGER_TYPES

homeassistant.components.netatmo.device_trigger.TRIGGER_TYPES = OUTDOOR_CAMERA_TRIGGERS + INDOOR_CAMERA_TRIGGERS + CLIMATE_TRIGGERS

Definition at line 56 of file device_trigger.py.