Public Member Functions | |
| None | __init__ (self, AncillaryControl|Presence|RelativeRotary|Switch device, DeconzHub hub) |
| None | async_update_callback (self) |
| None | async_update_device_registry (self) |
| None | async_will_remove_from_hass (self) |
Public Attributes | |
| device | |
| device_id | |
| event_id | |
Private Attributes | |
| _unsubscribe | |
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 116 of file deconz_event.py.
| None homeassistant.components.deconz.deconz_event.DeconzEventBase.__init__ | ( | self, | |
| AncillaryControl | Presence | RelativeRotary | Switch | device, | ||
| DeconzHub | hub | ||
| ) |
Register callback that will be used for signals.
Definition at line 123 of file deconz_event.py.
| None homeassistant.components.deconz.deconz_event.DeconzEventBase.async_update_callback | ( | self | ) |
Fire the event if reason is that state is updated.
Reimplemented in homeassistant.components.deconz.deconz_event.DeconzRelativeRotaryEvent, homeassistant.components.deconz.deconz_event.DeconzPresenceEvent, homeassistant.components.deconz.deconz_event.DeconzAlarmEvent, and homeassistant.components.deconz.deconz_event.DeconzEvent.
Definition at line 144 of file deconz_event.py.
| None homeassistant.components.deconz.deconz_event.DeconzEventBase.async_update_device_registry | ( | self | ) |
Update device registry.
Definition at line 148 of file deconz_event.py.
| None homeassistant.components.deconz.deconz_event.DeconzEventBase.async_will_remove_from_hass | ( | self | ) |
Disconnect event object when removed.
Definition at line 139 of file deconz_event.py.
|
private |
Definition at line 131 of file deconz_event.py.
| homeassistant.components.deconz.deconz_event.DeconzEventBase.device |
Definition at line 133 of file deconz_event.py.
| homeassistant.components.deconz.deconz_event.DeconzEventBase.device_id |
Definition at line 158 of file deconz_event.py.
| homeassistant.components.deconz.deconz_event.DeconzEventBase.event_id |
Definition at line 135 of file deconz_event.py.