Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sia.utils Namespace Reference

Functions

dict[str, Any] get_attr_from_sia_event (SIAEvent event)
 
dict[str, Any] get_event_data_from_sia_event (SIAEvent event)
 
float get_unavailability_interval (int ping)
 
tuple[str, str] get_unique_id_and_name (str entry_id, int port, str account, int zone, str entity_key)
 

Variables

int PING_INTERVAL_MARGIN = 30
 

Detailed Description

Helper functions for the SIA integration.

Function Documentation

◆ get_attr_from_sia_event()

dict[str, Any] homeassistant.components.sia.utils.get_attr_from_sia_event ( SIAEvent  event)
Create the attributes dict from a SIAEvent.

Definition at line 53 of file utils.py.

◆ get_event_data_from_sia_event()

dict[str, Any] homeassistant.components.sia.utils.get_event_data_from_sia_event ( SIAEvent  event)
Create a dict from the SIA Event for the HA Event.

Definition at line 67 of file utils.py.

◆ get_unavailability_interval()

float homeassistant.components.sia.utils.get_unavailability_interval ( int  ping)
Return the interval to the next unavailability check.

Definition at line 48 of file utils.py.

◆ get_unique_id_and_name()

tuple[str, str] homeassistant.components.sia.utils.get_unique_id_and_name ( str  entry_id,
int  port,
str  account,
int  zone,
str  entity_key 
)
Return the unique_id and name for an entity.

Definition at line 26 of file utils.py.

Variable Documentation

◆ PING_INTERVAL_MARGIN

int homeassistant.components.sia.utils.PING_INTERVAL_MARGIN = 30

Definition at line 23 of file utils.py.