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

Namespaces

 binary_sensor
 
 button
 
 config_flow
 
 const
 
 coordinator
 
 entity
 
 light
 
 number
 
 select
 
 sensor
 
 switch
 

Functions

None _async_migrate_unique_ids (HomeAssistant hass, ConfigEntry entry, AsyncSleepIQ gateway)
 
bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 CONFIG_SCHEMA
 
list PLATFORMS
 

Detailed Description

Support for SleepIQ from SleepNumber.

Function Documentation

◆ _async_migrate_unique_ids()

None homeassistant.components.sleepiq._async_migrate_unique_ids ( HomeAssistant  hass,
ConfigEntry  entry,
AsyncSleepIQ   gateway 
)
private
Migrate old unique ids.

Definition at line 123 of file __init__.py.

◆ async_setup()

bool homeassistant.components.sleepiq.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up sleepiq component.

Definition at line 55 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.sleepiq.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up the SleepIQ config entry.

Definition at line 67 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.sleepiq.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload the config entry.

Definition at line 116 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 32 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.sleepiq.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: {
4  vol.Required(CONF_USERNAME): cv.string,
5  vol.Required(CONF_PASSWORD): cv.string,
6  }
7  },
8  extra=vol.ALLOW_EXTRA,
9 )

Definition at line 44 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.sleepiq.PLATFORMS
Initial value:
1 = [
2  Platform.BINARY_SENSOR,
3  Platform.BUTTON,
4  Platform.LIGHT,
5  Platform.NUMBER,
6  Platform.SELECT,
7  Platform.SENSOR,
8  Platform.SWITCH,
9 ]

Definition at line 34 of file __init__.py.