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

Namespaces

 binary_sensor
 
 entity
 
 light
 
 sensor
 
 switch
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_BUTTON_EVENTS = "button_events"
 
string CONF_DIMMER_ADJUST = "dimmer_adjust"
 
 CONFIG_SCHEMA
 
 CV_DIM_VALUE = vol.All(vol.Coerce(float), vol.Range(min=1, max=3))
 
string DOMAIN = "qwikswitch"
 

Detailed Description

Support for Qwikswitch devices.

Function Documentation

◆ async_setup()

bool homeassistant.components.qwikswitch.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Qwiskswitch component setup.

Definition at line 68 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 27 of file __init__.py.

◆ CONF_BUTTON_EVENTS

string homeassistant.components.qwikswitch.CONF_BUTTON_EVENTS = "button_events"

Definition at line 32 of file __init__.py.

◆ CONF_DIMMER_ADJUST

string homeassistant.components.qwikswitch.CONF_DIMMER_ADJUST = "dimmer_adjust"

Definition at line 31 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.qwikswitch.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  {
5  vol.Required(CONF_URL, default="http://127.0.0.1:2020"): vol.Coerce(
6  str
7  ),
8  vol.Optional(CONF_DIMMER_ADJUST, default=1): CV_DIM_VALUE,
9  vol.Optional(CONF_BUTTON_EVENTS, default=[]): cv.ensure_list_csv,
10  vol.Optional(CONF_SENSORS, default=[]): vol.All(
11  cv.ensure_list,
12  [
13  vol.Schema(
14  {
15  vol.Required("id"): str,
16  vol.Optional("channel", default=1): int,
17  vol.Required("name"): str,
18  vol.Required("type"): str,
19  vol.Optional("class"): DEVICE_CLASSES_SCHEMA,
20  vol.Optional("invert"): bool,
21  }
22  )
23  ],
24  ),
25  vol.Optional(CONF_SWITCHES, default=[]): vol.All(cv.ensure_list, [str]),
26  }
27  )
28  },
29  extra=vol.ALLOW_EXTRA,
30 )

Definition at line 36 of file __init__.py.

◆ CV_DIM_VALUE

homeassistant.components.qwikswitch.CV_DIM_VALUE = vol.All(vol.Coerce(float), vol.Range(min=1, max=3))

Definition at line 33 of file __init__.py.

◆ DOMAIN

string homeassistant.components.qwikswitch.DOMAIN = "qwikswitch"

Definition at line 29 of file __init__.py.