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

Classes

class  SleepIQBedEntity
 
class  SleepIQEntity
 
class  SleepIQSleeperEntity
 

Functions

None __init__ (self, _SleepIQCoordinatorT coordinator, SleepIQBed bed)
 
None __init__ (self, _SleepIQCoordinatorT coordinator, SleepIQBed bed, SleepIQSleeper sleeper, str name)
 
None _async_update_attrs (self)
 
None _handle_coordinator_update (self)
 
DeviceInfo device_from_bed (SleepIQBed bed)
 
SleepIQSleeper sleeper_for_side (SleepIQBed bed, str side)
 

Variables

 _attr_device_info
 
 _attr_icon = ICON_OCCUPIED
 
 _attr_name
 
 _attr_unique_id
 
 _DataCoordinatorType
 
 bed
 
 sleeper
 

Detailed Description

Entity for the SleepIQ integration.

Function Documentation

◆ __init__() [1/2]

None homeassistant.components.sleepiq.entity.__init__ (   self,
_SleepIQCoordinatorT  coordinator,
SleepIQBed  bed 
)
Initialize the SleepIQ sensor entity.

Definition at line 53 of file entity.py.

◆ __init__() [2/2]

None homeassistant.components.sleepiq.entity.__init__ (   self,
_SleepIQCoordinatorT  coordinator,
SleepIQBed  bed,
SleepIQSleeper  sleeper,
str  name 
)
Initialize the SleepIQ sensor entity.

Definition at line 83 of file entity.py.

◆ _async_update_attrs()

None homeassistant.components.sleepiq.entity._async_update_attrs (   self)
private
Update sensor attributes.

Definition at line 72 of file entity.py.

◆ _handle_coordinator_update()

None homeassistant.components.sleepiq.entity._handle_coordinator_update (   self)
private
Handle updated data from the coordinator.

Definition at line 65 of file entity.py.

◆ device_from_bed()

DeviceInfo homeassistant.components.sleepiq.entity.device_from_bed ( SleepIQBed  bed)
Create a device given a bed.

Definition at line 19 of file entity.py.

◆ sleeper_for_side()

SleepIQSleeper homeassistant.components.sleepiq.entity.sleeper_for_side ( SleepIQBed  bed,
str  side 
)
Find the sleeper for a side or the first sleeper.

Definition at line 29 of file entity.py.

Variable Documentation

◆ _attr_device_info

homeassistant.components.sleepiq.entity._attr_device_info
private

Definition at line 61 of file entity.py.

◆ _attr_icon

homeassistant.components.sleepiq.entity._attr_icon = ICON_OCCUPIED
private
Implementation of a SleepIQ sensor.

Definition at line 51 of file entity.py.

◆ _attr_name

homeassistant.components.sleepiq.entity._attr_name
private

Definition at line 94 of file entity.py.

◆ _attr_unique_id

homeassistant.components.sleepiq.entity._attr_unique_id
private

Definition at line 95 of file entity.py.

◆ _DataCoordinatorType

homeassistant.components.sleepiq.entity._DataCoordinatorType
private

Definition at line 16 of file entity.py.

◆ bed

homeassistant.components.sleepiq.entity.bed

Definition at line 60 of file entity.py.

◆ sleeper

homeassistant.components.sleepiq.entity.sleeper

Definition at line 91 of file entity.py.