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

Classes

class  DeconzBase
 
class  DeconzDevice
 
class  DeconzSceneMixin
 

Functions

None __init__ (self, _DeviceT device, DeconzHub hub)
 
None async_added_to_hass (self)
 
None async_update_callback (self)
 
None async_update_connection_state (self)
 
None async_will_remove_from_hass (self)
 
bool available (self)
 
DeviceInfo|None device_info (self)
 
str|None serial (self)
 
str unique_id (self)
 

Variables

 _attr_name
 
bool _attr_should_poll = False
 
 _DeviceType
 
 _update_keys
 
 hub
 
 None
 
string TYPE = ""
 

Detailed Description

Base class for deCONZ devices.

Function Documentation

◆ __init__()

None homeassistant.components.deconz.entity.__init__ (   self,
_DeviceT  device,
DeconzHub  hub 
)
Set up device and add update callback to get data from websocket.

Definition at line 30 of file entity.py.

◆ async_added_to_hass()

None homeassistant.components.deconz.entity.async_added_to_hass (   self)
Subscribe to device events.

Definition at line 100 of file entity.py.

◆ async_update_callback()

None homeassistant.components.deconz.entity.async_update_callback (   self)
Update the device's state.

Definition at line 124 of file entity.py.

◆ async_update_connection_state()

None homeassistant.components.deconz.entity.async_update_connection_state (   self)
Update the device's available state.

Definition at line 119 of file entity.py.

◆ async_will_remove_from_hass()

None homeassistant.components.deconz.entity.async_will_remove_from_hass (   self)
Disconnect device object when removed.

Definition at line 112 of file entity.py.

◆ available()

bool homeassistant.components.deconz.entity.available (   self)
Return True if device is available.

Definition at line 137 of file entity.py.

◆ device_info()

DeviceInfo | None homeassistant.components.deconz.entity.device_info (   self)
Return a device description for device registry.

Definition at line 54 of file entity.py.

◆ serial()

str | None homeassistant.components.deconz.entity.serial (   self)
Return a serial number for this device.

Definition at line 48 of file entity.py.

◆ unique_id()

str homeassistant.components.deconz.entity.unique_id (   self)
Return a unique identifier for this device.

Definition at line 40 of file entity.py.

Variable Documentation

◆ _attr_name

homeassistant.components.deconz.entity._attr_name
private

Definition at line 91 of file entity.py.

◆ _attr_should_poll

bool homeassistant.components.deconz.entity._attr_should_poll = False
private
Representation of a deCONZ device.

Definition at line 74 of file entity.py.

◆ _DeviceType

homeassistant.components.deconz.entity._DeviceType
private

Definition at line 20 of file entity.py.

◆ _update_keys

homeassistant.components.deconz.entity._update_keys
private

Definition at line 96 of file entity.py.

◆ hub

homeassistant.components.deconz.entity.hub

Definition at line 37 of file entity.py.

◆ None

homeassistant.components.deconz.entity.None
Common base for deconz entities and events.

Definition at line 28 of file entity.py.

◆ TYPE

string homeassistant.components.deconz.entity.TYPE = ""

Definition at line 80 of file entity.py.