Home Assistant Unofficial Reference 2024.12.1
websocket_api.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.recorder.websocket_api
 

Functions

bytes homeassistant.components.recorder.websocket_api._ws_get_list_statistic_ids (HomeAssistant hass, int msg_id, Literal["mean", "sum"]|None statistic_type=None)
 
bytes homeassistant.components.recorder.websocket_api._ws_get_statistic_during_period (HomeAssistant hass, int msg_id, dt|None start_time, dt|None end_time, str statistic_id, set[Literal["max", "mean", "min", "change"]]|None types, dict[str, str] units)
 
bytes homeassistant.components.recorder.websocket_api._ws_get_statistics_during_period (HomeAssistant hass, int msg_id, dt start_time, dt|None end_time, set[str]|None statistic_ids, Literal["5minute", "day", "hour", "week", "month"] period, dict[str, str] units, set[Literal["change", "last_reset", "max", "mean", "min", "state", "sum"]] types)
 
None homeassistant.components.recorder.websocket_api.async_setup (HomeAssistant hass)
 
None homeassistant.components.recorder.websocket_api.ws_adjust_sum_statistics (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_change_statistics_unit (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_clear_statistics (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_get_statistic_during_period (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_get_statistics_during_period (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_get_statistics_metadata (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_handle_get_statistics_during_period (HomeAssistant hass, websocket_api.ActiveConnection connection, dict msg)
 
None homeassistant.components.recorder.websocket_api.ws_handle_list_statistic_ids (HomeAssistant hass, websocket_api.ActiveConnection connection, dict msg)
 
None homeassistant.components.recorder.websocket_api.ws_import_statistics (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_list_statistic_ids (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_update_statistics_issues (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_update_statistics_metadata (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None homeassistant.components.recorder.websocket_api.ws_validate_statistics (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 

Variables

int homeassistant.components.recorder.websocket_api.CLEAR_STATISTICS_TIME_OUT = 10
 
 homeassistant.components.recorder.websocket_api.UNIT_SCHEMA
 
int homeassistant.components.recorder.websocket_api.UPDATE_STATISTICS_METADATA_TIME_OUT = 10