Class for SIA Hubs.
Definition at line 34 of file hub.py.
◆ __init__()
Create the SIAHub.
Definition at line 37 of file hub.py.
◆ _load_options()
| None homeassistant.components.sia.hub.SIAHub._load_options |
( |
|
self | ) |
|
|
private |
Store attributes to avoid property call overhead since they are called frequently.
Definition at line 121 of file hub.py.
◆ async_config_entry_updated()
| None homeassistant.components.sia.hub.SIAHub.async_config_entry_updated |
( |
HomeAssistant |
hass, |
|
|
ConfigEntry
|
config_entry |
|
) |
| |
|
static |
Handle signals of config entry being updated.
First, update the accounts, this will reflect any changes with ignore_timestamps.
Second, unload underlying platforms, and then setup platforms, this reflects any changes in number of zones.
Definition at line 133 of file hub.py.
◆ async_create_and_fire_event()
| None homeassistant.components.sia.hub.SIAHub.async_create_and_fire_event |
( |
|
self, |
|
|
SIAEvent |
event |
|
) |
| |
Create a event on HA dispatcher and then on HA's bus, with the data from the SIAEvent.
The created event is handled by default for only a small subset for each platform (there are about 320 SIA Codes defined, only 22 of those are used in the alarm_control_panel), a user can choose to build other automation or even entities on the same event for SIA codes not handled by the built-in platforms.
Definition at line 76 of file hub.py.
◆ async_setup_hub()
| None homeassistant.components.sia.hub.SIAHub.async_setup_hub |
( |
|
self | ) |
|
Add a device to the device_registry, register shutdown listener, load reactions.
Definition at line 53 of file hub.py.
◆ async_shutdown()
| None homeassistant.components.sia.hub.SIAHub.async_shutdown |
( |
|
self, |
|
|
Event | None |
_ = None |
|
) |
| |
Shutdown the SIA server.
Definition at line 71 of file hub.py.
◆ update_accounts()
| def homeassistant.components.sia.hub.SIAHub.update_accounts |
( |
|
self | ) |
|
Update the SIA_Accounts variable.
Definition at line 96 of file hub.py.
◆ sia_accounts
| homeassistant.components.sia.hub.SIAHub.sia_accounts |
◆ sia_client
| homeassistant.components.sia.hub.SIAHub.sia_client |
The documentation for this class was generated from the following file:
- core/homeassistant/components/sia/hub.py