Home Assistant Unofficial Reference 2024.12.1
websocket_api.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.history.websocket_api.HistoryLiveStream
 

Namespaces

 homeassistant.components.history.websocket_api
 

Functions

None homeassistant.components.history.websocket_api._async_events_consumer (dt subscriptions_setup_complete_time, ActiveConnection connection, int msg_id, asyncio.Queue[Event] stream_queue, bool no_attributes)
 
None homeassistant.components.history.websocket_api._async_send_empty_response (ActiveConnection connection, int msg_id, dt start_time, dt|None end_time)
 
dt|None homeassistant.components.history.websocket_api._async_send_historical_states (HomeAssistant hass, ActiveConnection connection, int msg_id, dt start_time, dt end_time, list[str]|None entity_ids, bool include_start_time_state, bool significant_changes_only, bool minimal_response, bool no_attributes, bool send_empty)
 
None homeassistant.components.history.websocket_api._async_subscribe_events (HomeAssistant hass, list[CALLBACK_TYPE] subscriptions, Callable[[Event[Any]], None] target, list[str] entity_ids, bool significant_changes_only, bool minimal_response)
 
dict[str, list[dict[str, Any]]] homeassistant.components.history.websocket_api._events_to_compressed_states (Iterable[Event] events, bool no_attributes)
 
tuple[float, dt|None, bytes|None] homeassistant.components.history.websocket_api._generate_historical_response (HomeAssistant hass, int msg_id, dt start_time, dt end_time, list[str]|None entity_ids, bool include_start_time_state, bool significant_changes_only, bool minimal_response, bool no_attributes, bool send_empty)
 
dict[str, Any] homeassistant.components.history.websocket_api._generate_stream_message (dict[str, list[dict[str, Any]]] states, dt start_day, dt end_day)
 
bytes homeassistant.components.history.websocket_api._generate_websocket_response (int msg_id, dt start_time, dt end_time, dict[str, list[dict[str, Any]]] states)
 
dict[str, Any] homeassistant.components.history.websocket_api._history_compressed_state (State state, bool no_attributes)
 
bytes homeassistant.components.history.websocket_api._ws_get_significant_states (HomeAssistant hass, int msg_id, dt start_time, dt|None end_time, list[str]|None entity_ids, bool include_start_time_state, bool significant_changes_only, bool minimal_response, bool no_attributes)
 
None homeassistant.components.history.websocket_api.async_setup (HomeAssistant hass)
 
None homeassistant.components.history.websocket_api.ws_get_history_during_period (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.history.websocket_api.ws_stream (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 

Variables

 homeassistant.components.history.websocket_api._LOGGER = logging.getLogger(__name__)