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

Namespaces

 light
 
 switch
 

Functions

bool setup (HomeAssistant hass, ConfigType config)
 

Variables

 CONFIG_SCHEMA
 
 DEVICE_SCHEMA
 
string DOMAIN = "eufy"
 
dictionary PLATFORMS
 

Detailed Description

Support for EufyHome devices.

Function Documentation

◆ setup()

bool homeassistant.components.eufy.setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up EufyHome devices.

Definition at line 58 of file __init__.py.

Variable Documentation

◆ CONFIG_SCHEMA

homeassistant.components.eufy.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  {
5  vol.Optional(CONF_DEVICES, default=[]): vol.All(
6  cv.ensure_list, [DEVICE_SCHEMA]
7  ),
8  vol.Inclusive(CONF_USERNAME, "authentication"): cv.string,
9  vol.Inclusive(CONF_PASSWORD, "authentication"): cv.string,
10  }
11  )
12  },
13  extra=vol.ALLOW_EXTRA,
14 )

Definition at line 32 of file __init__.py.

◆ DEVICE_SCHEMA

homeassistant.components.eufy.DEVICE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_ADDRESS): cv.string,
4  vol.Required(CONF_ACCESS_TOKEN): cv.string,
5  vol.Required(CONF_TYPE): cv.string,
6  vol.Optional(CONF_NAME): cv.string,
7  }
8 )

Definition at line 23 of file __init__.py.

◆ DOMAIN

string homeassistant.components.eufy.DOMAIN = "eufy"

Definition at line 21 of file __init__.py.

◆ PLATFORMS

dictionary homeassistant.components.eufy.PLATFORMS
Initial value:
1 = {
2  "T1011": Platform.LIGHT,
3  "T1012": Platform.LIGHT,
4  "T1013": Platform.LIGHT,
5  "T1201": Platform.SWITCH,
6  "T1202": Platform.SWITCH,
7  "T1203": Platform.SWITCH,
8  "T1211": Platform.SWITCH,
9 }

Definition at line 47 of file __init__.py.