Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.hue.v1.hue_event.HueEvent Class Reference
Inheritance diagram for homeassistant.components.hue.v1.hue_event.HueEvent:
[legend]
Collaboration diagram for homeassistant.components.hue.v1.hue_event.HueEvent:
[legend]

Public Member Functions

def __init__ (self, sensor, name, bridge, primary_sensor=None)
 
def async_update_callback (self)
 
def async_update_device_registry (self)
 
- Public Member Functions inherited from homeassistant.components.hue.v1.sensor_device.GenericHueDevice
def device_id (self)
 
DeviceInfo device_info (self)
 
def name (self)
 
def primary_sensor (self)
 
def swupdatestate (self)
 
def unique_id (self)
 

Public Attributes

 device_registry_id
 
 event_id
 
- Public Attributes inherited from homeassistant.components.hue.v1.sensor_device.GenericHueDevice
 allow_unreachable
 
 bridge
 
 sensor
 

Private Attributes

 _last_state
 

Detailed Description

When you want signals instead of entities.

Stateless sensors such as remotes are expected to generate an event
instead of a sensor entity in hass.

Definition at line 27 of file hue_event.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.hue.v1.hue_event.HueEvent.__init__ (   self,
  sensor,
  name,
  bridge,
  primary_sensor = None 
)
Register callback that will be used for signals.

Reimplemented from homeassistant.components.hue.v1.sensor_device.GenericHueDevice.

Definition at line 34 of file hue_event.py.

Member Function Documentation

◆ async_update_callback()

def homeassistant.components.hue.v1.hue_event.HueEvent.async_update_callback (   self)
Fire the event if reason is that state is updated.

Definition at line 51 of file hue_event.py.

◆ async_update_device_registry()

def homeassistant.components.hue.v1.hue_event.HueEvent.async_update_device_registry (   self)
Update device registry.

Definition at line 92 of file hue_event.py.

Member Data Documentation

◆ _last_state

homeassistant.components.hue.v1.hue_event.HueEvent._last_state
private

Definition at line 41 of file hue_event.py.

◆ device_registry_id

homeassistant.components.hue.v1.hue_event.HueEvent.device_registry_id

Definition at line 37 of file hue_event.py.

◆ event_id

homeassistant.components.hue.v1.hue_event.HueEvent.event_id

Definition at line 39 of file hue_event.py.


The documentation for this class was generated from the following file: