Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.wemo Namespace Reference

Namespaces

 binary_sensor
 
 config_flow
 
 const
 
 coordinator
 
 device_trigger
 
 entity
 
 fan
 
 light
 
 models
 
 sensor
 
 switch
 

Classes

class  WemoDiscovery
 
class  WemoDispatcher
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
None async_wemo_dispatcher_connect (HomeAssistant hass, DispatchCallback dispatch)
 
HostPortTuple coerce_host_port (str value)
 
pywemo.WeMoDevice|None validate_static_config (str host, int|None port)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_STATIC = "static"
 
 CONFIG_SCHEMA
 
bool DEFAULT_DISCOVERY = True
 
 DispatchCallback
 
 HostPortTuple
 
int MAX_CONCURRENCY = 3
 
dictionary WEMO_MODEL_DISPATCH
 

Detailed Description

Support for WeMo device discovery.

Function Documentation

◆ async_setup()

bool homeassistant.components.wemo.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up for WeMo devices.

Definition at line 85 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.wemo.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up a wemo config entry.

Definition at line 118 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.wemo.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a wemo config entry.

Definition at line 138 of file __init__.py.

◆ async_wemo_dispatcher_connect()

None homeassistant.components.wemo.async_wemo_dispatcher_connect ( HomeAssistant  hass,
DispatchCallback  dispatch 
)
Connect a wemo platform with the WemoDispatcher.

Definition at line 156 of file __init__.py.

◆ coerce_host_port()

HostPortTuple homeassistant.components.wemo.coerce_host_port ( str  value)
Validate that provided value is either just host or host:port.

Returns (host, None) or (host, port) respectively.

Definition at line 51 of file __init__.py.

◆ validate_static_config()

pywemo.WeMoDevice | None homeassistant.components.wemo.validate_static_config ( str  host,
int | None  port 
)
Handle a static config.

Definition at line 325 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.wemo._LOGGER = logging.getLogger(__name__)
private

Definition at line 45 of file __init__.py.

◆ CONF_STATIC

string homeassistant.components.wemo.CONF_STATIC = "static"

Definition at line 66 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.wemo.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  {
5  vol.Optional(CONF_STATIC, default=[]): vol.Schema(
6  [vol.All(cv.string, coerce_host_port)]
7  ),
8  vol.Optional(CONF_DISCOVERY, default=DEFAULT_DISCOVERY): cv.boolean,
9  }
10  )
11  },
12  extra=vol.ALLOW_EXTRA,
13 )

Definition at line 70 of file __init__.py.

◆ DEFAULT_DISCOVERY

bool homeassistant.components.wemo.DEFAULT_DISCOVERY = True

Definition at line 68 of file __init__.py.

◆ DispatchCallback

homeassistant.components.wemo.DispatchCallback

Definition at line 47 of file __init__.py.

◆ HostPortTuple

homeassistant.components.wemo.HostPortTuple

Definition at line 48 of file __init__.py.

◆ MAX_CONCURRENCY

int homeassistant.components.wemo.MAX_CONCURRENCY = 3

Definition at line 28 of file __init__.py.

◆ WEMO_MODEL_DISPATCH

dictionary homeassistant.components.wemo.WEMO_MODEL_DISPATCH
Initial value:
1 = {
2  "Bridge": [Platform.LIGHT],
3  "CoffeeMaker": [Platform.SWITCH],
4  "Dimmer": [Platform.LIGHT],
5  "Humidifier": [Platform.FAN],
6  "Insight": [Platform.BINARY_SENSOR, Platform.SWITCH],
7  "LightSwitch": [Platform.SWITCH],
8  "Maker": [Platform.BINARY_SENSOR, Platform.SWITCH],
9  "Motion": [Platform.BINARY_SENSOR],
10  "OutdoorPlug": [Platform.SWITCH],
11  "Sensor": [Platform.BINARY_SENSOR],
12  "Socket": [Platform.SWITCH],
13 }

Definition at line 31 of file __init__.py.