Home Assistant Unofficial Reference 2024.12.1
websocket_api.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.logbook.websocket_api.LogbookLiveStream
 

Namespaces

 homeassistant.components.logbook.websocket_api
 

Functions

None homeassistant.components.logbook.websocket_api._async_events_consumer (dt subscriptions_setup_complete_time, ActiveConnection connection, int msg_id, asyncio.Queue[Event] stream_queue, EventProcessor event_processor)
 
tuple[bytes, dt|None] homeassistant.components.logbook.websocket_api._async_get_ws_stream_events (HomeAssistant hass, int msg_id, dt start_time, dt end_time, EventProcessor event_processor, bool partial)
 
None homeassistant.components.logbook.websocket_api._async_send_empty_response (ActiveConnection connection, int msg_id, dt start_time, dt|None end_time)
 
dt|None homeassistant.components.logbook.websocket_api._async_send_historical_events (HomeAssistant hass, ActiveConnection connection, int msg_id, dt start_time, dt end_time, EventProcessor event_processor, bool partial, bool force_send=False)
 
dict[str, Any] homeassistant.components.logbook.websocket_api._generate_stream_message (list[dict[str, Any]] events, dt start_day, dt end_day)
 
bytes homeassistant.components.logbook.websocket_api._ws_formatted_get_events (int msg_id, dt start_time, dt end_time, EventProcessor event_processor)
 
tuple[bytes, dt|None] homeassistant.components.logbook.websocket_api._ws_stream_get_events (int msg_id, dt start_day, dt end_day, EventProcessor event_processor, bool partial)
 
None homeassistant.components.logbook.websocket_api.async_setup (HomeAssistant hass)
 
None homeassistant.components.logbook.websocket_api.ws_event_stream (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.logbook.websocket_api.ws_get_events (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 

Variables

 homeassistant.components.logbook.websocket_api._LOGGER = logging.getLogger(__name__)
 
int homeassistant.components.logbook.websocket_api.BIG_QUERY_HOURS = 25
 
int homeassistant.components.logbook.websocket_api.BIG_QUERY_RECENT_HOURS = 24
 
float homeassistant.components.logbook.websocket_api.EVENT_COALESCE_TIME = 0.35
 
int homeassistant.components.logbook.websocket_api.MAX_PENDING_LOGBOOK_EVENTS = 2048