|
| web.Response | get (self, web.Request request, str|None datetime=None) |
| |
|
| list | extra_urls = ["/api/history/period/{datetime}"] |
| |
| string | name = "api:history:view-period" |
| |
| string | url = "/api/history/period" |
| |
|
| web.Response | _sorted_significant_states_json (self, HomeAssistant hass, dt start_time, dt end_time, list[str] entity_ids, bool include_start_time_state, bool significant_changes_only, bool minimal_response, bool no_attributes) |
| |
Handle history period requests.
Definition at line 54 of file __init__.py.
◆ _sorted_significant_states_json()
| web.Response homeassistant.components.history.HistoryPeriodView._sorted_significant_states_json |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
dt |
start_time, |
|
|
dt |
end_time, |
|
|
list[str] |
entity_ids, |
|
|
bool |
include_start_time_state, |
|
|
bool |
significant_changes_only, |
|
|
bool |
minimal_response, |
|
|
bool |
no_attributes |
|
) |
| |
|
private |
Fetch significant stats from the database as json.
Definition at line 137 of file __init__.py.
◆ get()
| web.Response homeassistant.components.history.HistoryPeriodView.get |
( |
|
self, |
|
|
web.Request |
request, |
|
|
str | None |
datetime = None |
|
) |
| |
Return history over a period of time.
Definition at line 61 of file __init__.py.
◆ extra_urls
| list homeassistant.components.history.HistoryPeriodView.extra_urls = ["/api/history/period/{datetime}"] |
|
static |
◆ name
| string homeassistant.components.history.HistoryPeriodView.name = "api:history:view-period" |
|
static |
◆ url
| string homeassistant.components.history.HistoryPeriodView.url = "/api/history/period" |
|
static |
The documentation for this class was generated from the following file: