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

Namespaces

 binary_sensor
 
 config_flow
 
 const
 
 light
 
 models
 
 sensor
 
 switch
 

Functions

None _async_get_device_state (MyStromSwitch|MyStromBulb device, str ip_address)
 
MyStromBulb _get_mystrom_bulb (str host, str mac)
 
MyStromSwitch _get_mystrom_switch (str host)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list PLATFORMS_BULB = [Platform.LIGHT]
 
list PLATFORMS_PLUGS = [Platform.SENSOR, Platform.SWITCH]
 

Detailed Description

The myStrom integration.

Function Documentation

◆ _async_get_device_state()

None homeassistant.components.mystrom._async_get_device_state ( MyStromSwitch | MyStromBulb  device,
str   ip_address 
)
private

Definition at line 26 of file __init__.py.

◆ _get_mystrom_bulb()

MyStromBulb homeassistant.components.mystrom._get_mystrom_bulb ( str  host,
str  mac 
)
private

Definition at line 36 of file __init__.py.

◆ _get_mystrom_switch()

MyStromSwitch homeassistant.components.mystrom._get_mystrom_switch ( str  host)
private

Definition at line 40 of file __init__.py.

◆ async_setup_entry()

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

Definition at line 44 of file __init__.py.

◆ async_unload_entry()

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

Definition at line 85 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 23 of file __init__.py.

◆ PLATFORMS_BULB

list homeassistant.components.mystrom.PLATFORMS_BULB = [Platform.LIGHT]

Definition at line 21 of file __init__.py.

◆ PLATFORMS_PLUGS

list homeassistant.components.mystrom.PLATFORMS_PLUGS = [Platform.SENSOR, Platform.SWITCH]

Definition at line 20 of file __init__.py.