Home Assistant Unofficial Reference 2024.12.1
modern.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.recorder.history.modern
 

Functions

Select homeassistant.components.recorder.history.modern._get_last_state_changes_multiple_stmt (int number_of_states, int metadata_id, bool include_last_reported)
 
Select homeassistant.components.recorder.history.modern._get_last_state_changes_single_stmt (int metadata_id)
 
float|None homeassistant.components.recorder.history.modern._get_oldest_possible_ts (HomeAssistant hass, datetime utc_point_in_time)
 
Select homeassistant.components.recorder.history.modern._get_single_entity_start_time_stmt (float epoch_time, int metadata_id, bool no_attributes, bool include_last_changed, bool include_last_reported)
 
Select homeassistant.components.recorder.history.modern._get_start_time_state_for_entities_stmt (float run_start_ts, float epoch_time, list[int] metadata_ids, bool no_attributes, bool include_last_changed)
 
Select homeassistant.components.recorder.history.modern._get_start_time_state_stmt (float run_start_ts, float epoch_time, int|None single_metadata_id, list[int] metadata_ids, bool no_attributes, bool include_last_changed)
 
Select homeassistant.components.recorder.history.modern._select_from_subquery (Subquery|CompoundSelect subquery, bool no_attributes, bool include_last_changed, bool include_last_reported)
 
Select|CompoundSelect homeassistant.components.recorder.history.modern._significant_states_stmt (float start_time_ts, float|None end_time_ts, int|None single_metadata_id, list[int] metadata_ids, list[int] metadata_ids_in_significant_domains, bool significant_changes_only, bool no_attributes, bool include_start_time_state, float|None run_start_ts)
 
dict[str, list[State|dict[str, Any]]] homeassistant.components.recorder.history.modern._sorted_states_to_dict (Iterable[Row] states, float|None start_time_ts, list[str] entity_ids, dict[str, int|None] entity_id_to_metadata_id, bool minimal_response=False, bool compressed_state_format=False, bool descending=False, bool no_attributes=False)
 
Select|CompoundSelect homeassistant.components.recorder.history.modern._state_changed_during_period_stmt (float start_time_ts, float|None end_time_ts, int single_metadata_id, bool no_attributes, int|None limit, bool include_start_time_state, float|None run_start_ts, bool include_last_reported)
 
Select homeassistant.components.recorder.history.modern._stmt_and_join_attributes (bool no_attributes, bool include_last_changed, bool include_last_reported)
 
Select homeassistant.components.recorder.history.modern._stmt_and_join_attributes_for_start_state (bool no_attributes, bool include_last_changed, bool include_last_reported)
 
dict[str, list[State]] homeassistant.components.recorder.history.modern.get_full_significant_states_with_session (HomeAssistant hass, Session session, datetime start_time, datetime|None end_time=None, list[str]|None entity_ids=None, Filters|None filters=None, bool include_start_time_state=True, bool significant_changes_only=True, bool no_attributes=False)
 
dict[str, list[State]] homeassistant.components.recorder.history.modern.get_last_state_changes (HomeAssistant hass, int number_of_states, str entity_id)
 
dict[str, list[State|dict[str, Any]]] homeassistant.components.recorder.history.modern.get_significant_states (HomeAssistant hass, datetime start_time, datetime|None end_time=None, list[str]|None entity_ids=None, Filters|None filters=None, bool include_start_time_state=True, bool significant_changes_only=True, bool minimal_response=False, bool no_attributes=False, bool compressed_state_format=False)
 
dict[str, list[State|dict[str, Any]]] homeassistant.components.recorder.history.modern.get_significant_states_with_session (HomeAssistant hass, Session session, datetime start_time, datetime|None end_time=None, list[str]|None entity_ids=None, Filters|None filters=None, bool include_start_time_state=True, bool significant_changes_only=True, bool minimal_response=False, bool no_attributes=False, bool compressed_state_format=False)
 
dict[str, list[State]] homeassistant.components.recorder.history.modern.state_changes_during_period (HomeAssistant hass, datetime start_time, datetime|None end_time=None, str|None entity_id=None, bool no_attributes=False, bool descending=False, int|None limit=None, bool include_start_time_state=True)
 

Variables

dictionary homeassistant.components.recorder.history.modern._FIELD_MAP