Home Assistant Unofficial Reference 2024.12.1
recorder.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.sensor.recorder
 

Functions

list[tuple[float, State]] homeassistant.components.sensor.recorder._entity_history_to_float_and_state (Iterable[State] entity_history)
 
bool homeassistant.components.sensor.recorder._equivalent_units (set[str|None] units)
 
list[State] homeassistant.components.sensor.recorder._get_sensor_states (HomeAssistant hass)
 
set[str|None] homeassistant.components.sensor.recorder._get_units (list[tuple[float, State]] fstates)
 
bool homeassistant.components.sensor.recorder._is_numeric (State state)
 
str|None homeassistant.components.sensor.recorder._last_reset_as_utc_isoformat (Any last_reset_s, str entity_id)
 
tuple[str|None, list[tuple[float, State]]] homeassistant.components.sensor.recorder._normalize_states (HomeAssistant hass, dict[str, tuple[int, StatisticMetaData]] old_metadatas, list[tuple[float, State]] fstates, str entity_id)
 
str homeassistant.components.sensor.recorder._suggest_report_issue (HomeAssistant hass, str entity_id)
 
float homeassistant.components.sensor.recorder._time_weighted_average (list[tuple[float, State]] fstates, datetime.datetime start, datetime.datetime end)
 
str|None homeassistant.components.sensor.recorder._timestamp_to_isoformat_or_none (float|None timestamp)
 
None homeassistant.components.sensor.recorder._update_issues (Callable[[str, str, dict[str, Any]], None] report_issue, list[State] sensor_states, dict[str, tuple[int, StatisticMetaData]] metadatas)
 
dict[str, set[str]] homeassistant.components.sensor.recorder._wanted_statistics (list[State] sensor_states)
 
statistics.PlatformCompiledStatistics homeassistant.components.sensor.recorder.compile_statistics (HomeAssistant hass, Session session, datetime.datetime start, datetime.datetime end)
 
dict homeassistant.components.sensor.recorder.list_statistic_ids (HomeAssistant hass, list[str]|tuple[str]|None statistic_ids=None, str|None statistic_type=None)
 
bool homeassistant.components.sensor.recorder.reset_detected (HomeAssistant hass, str entity_id, float fstate, float|None previous_fstate, State state)
 
None homeassistant.components.sensor.recorder.update_statistics_issues (HomeAssistant hass, Session session)
 
dict[str, list[statistics.ValidationIssue]] homeassistant.components.sensor.recorder.validate_statistics (HomeAssistant hass)
 
None homeassistant.components.sensor.recorder.warn_dip (HomeAssistant hass, str entity_id, State state, float previous_fstate)
 
None homeassistant.components.sensor.recorder.warn_negative (HomeAssistant hass, str entity_id, State state)
 

Variables

 homeassistant.components.sensor.recorder._LOGGER = logging.getLogger(__name__)
 
dictionary homeassistant.components.sensor.recorder.DEFAULT_STATISTICS
 
dictionary homeassistant.components.sensor.recorder.EQUIVALENT_UNITS
 
string homeassistant.components.sensor.recorder.LINK_DEV_STATISTICS = "https://my.home-assistant.io/redirect/developer_statistics"