J. Nick Koston
9c3f949165
Add live streaming logbook websocket endpoint ( #72258 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-22 14:57:54 -05:00
J. Nick Koston
d459a5c66e
Include context state in logbook responses to improve localization ( #72222 )
...
* Include context state in logbook responses to improve localization
* reduce payload, dont send context_event_type if sending context_state
2022-05-20 07:46:01 -07:00
J. Nick Koston
272e65f56d
Fix device_ids being filtered when entities also specified in the logbook ( #72122 )
2022-05-18 23:27:31 -05:00
J. Nick Koston
c4fc84ec1e
Add support for selecting device_ids from the logbook ( #72039 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-18 01:58:30 -05:00
J. Nick Koston
ec01e00184
Small cleanup to logbook context augmenter ( #72043 )
2022-05-17 21:10:28 -07:00
Paulus Schoutsen
5433c0a535
Make sure empty get_events results is always a list ( #72021 )
2022-05-17 10:43:58 -07:00
J. Nick Koston
089eb9960a
Reduce logbook websocket payload size and parse json attributes via the DBM ( #71895 )
2022-05-15 20:48:57 -07:00
J. Nick Koston
1f753ecd88
Relocate sqlalchemy filter builder to recorder/filters.py ( #71883 )
2022-05-14 23:04:23 -07:00
J. Nick Koston
663f6f8340
Complete refactoring of logbook humanify ( #71830 )
2022-05-13 14:56:16 -07:00
J. Nick Koston
535ae56fe7
Remove unused entity_id argument in logbook context augmenter ( #71829 )
2022-05-13 13:17:41 -07:00
J. Nick Koston
2a2a7a62c5
Avoid matching entity_id/domain attributes in logbook when there is no entities_filter ( #71825 )
2022-05-13 13:16:33 -07:00
J. Nick Koston
9bd508c0bf
Generate json for history and logbook websocket responses in the executor ( #71813 )
2022-05-13 13:17:54 -04:00
J. Nick Koston
d215cdc563
Avoid buffering logbook rows unless we are selecting less than a days worth ( #71809 )
2022-05-13 09:10:43 -07:00
J. Nick Koston
e7e45209ec
Update stale docstring in logbook ( #71814 )
2022-05-13 09:07:26 -07:00
J. Nick Koston
24a0007785
Add additional context data to logbook events ( #71721 )
2022-05-12 17:21:14 -07:00
J. Nick Koston
04af9698d3
Add logbook/get_events websocket endpoint ( #71706 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-11 22:28:06 -05:00
J. Nick Koston
81e8d2ab86
Significantly improve logbook performance when selecting entities ( #71657 )
2022-05-11 15:27:02 -07:00
J. Nick Koston
26177bd080
Convert logbook to use lambda_stmt ( #71624 )
2022-05-10 08:23:13 -05:00
J. Nick Koston
2560d35f1c
Always show the start and stop event in logbook ( #71600 )
2022-05-09 15:21:21 -05:00
Erik Montnemery
347193055e
Rename logbook humanify function ( #71597 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-09 23:10:26 +03:00
J. Nick Koston
24d7a464e1
Refactor logbook to reduce overhead and complexity ( #71509 )
2022-05-08 21:47:26 -07:00
J. Nick Koston
8f5e61ee80
Remove logbook split_entity_id caching ( #71359 )
2022-05-05 11:48:45 -07:00
Erik Montnemery
203bebe668
Include all non-numeric sensor events in logbook ( #71331 )
2022-05-05 13:16:36 -04:00
J. Nick Koston
0cdcdec809
Speed up and isolate legacy logbook context_id query ( #71201 )
2022-05-02 09:34:24 -07:00
J. Nick Koston
5db014666c
Avoid recording state_changed events in the events table ( #71165 )
...
* squash
fix mypy
* Update homeassistant/components/recorder/models.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* pass all columns
* fix commented out code
* reduce logbook query complexity
* merge
* comment
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-02 02:10:34 -05:00
J. Nick Koston
c23866e5e5
De-duplicate event data into a new event_data table ( #71135 )
2022-05-01 21:01:17 -05:00
J. Nick Koston
b8442d9340
Add json decode caching to logbook ( #71080 )
2022-05-01 19:33:31 -05:00
J. Nick Koston
3150915cb7
Convert unindexed domain queries to entity_id queries ( #68404 )
2022-03-20 01:28:17 -10:00
J. Nick Koston
9215702388
Separate attrs into another table (reduces database size) ( #68224 )
2022-03-18 00:23:13 -10:00
J. Nick Koston
bc862e97ed
Use a dedicated executor pool for database operations ( #68105 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-17 23:09:01 -10:00
Paulus Schoutsen
1bbc1f5f55
Validate in split_entity_id ( #66835 )
2022-02-18 16:11:17 -08:00
epenet
946238fb02
Import frontend ( #64104 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 10:01:12 +01:00
epenet
e5ba34b9f9
Add init type hints [misc] ( #63261 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 12:08:14 +01:00
epenet
8cc0df7b72
Ensure service calls are typed [k-n] ( #62917 )
...
* Ensure service calls are typed [k-n]
* Ensure service calls are typed in mazda
* Adjust mazda
* Add mazda comment
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:33:08 +01:00
J. Nick Koston
ccf8dcd14a
Fix Non-thread-safe operation in logbook ( #62148 )
2021-12-17 08:19:07 +01:00
Marc Mueller
84618fa831
Use assignment expressions 30 ( #58714 )
2021-10-30 16:33:42 +02:00
Marc Mueller
eab235173b
Use assignment expressions 28 ( #58189 )
2021-10-22 14:06:04 +02:00
Marc Mueller
4f8148f9ea
Use assignment expressions 07 ( #57787 )
2021-10-17 20:24:34 +02:00
Marc Mueller
aa7dc78a1e
Use assignment expressions 11 ( #57792 )
2021-10-17 20:15:48 +02:00
Ville Skyttä
d8d34fdd3b
Prefer HTTPStatus over int in HA view JSON functions ( #56504 )
...
* Prefer HTTPStatus over int in HA view JSON functions
* Update zwave tests to not expect a fixed typo
2021-09-22 21:59:52 +03:00
Tatham Oddie
4fa9871080
Fix logbook entity_matches_only query mode ( #55761 )
...
The string matching template needs to match the same compact JSON format
as the data is now written in.
2021-09-06 13:39:39 -07:00
Franck Nijhof
c875ff8648
Store JSON in database in compact format ( #53364 )
...
* Store JSON in database in compact format
* Fix logbook
2021-07-22 12:05:59 -10:00
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes ( #52987 )
2021-07-19 10:46:09 +02:00
Marcin Ciupak
caad125b44
Add support for Oracle DB in recorder ( #50090 )
2021-05-22 21:10:27 -05:00
Paulus Schoutsen
4cf910affc
Guard logbook assuming entity ID is a string ( #50047 )
2021-05-04 14:23:22 -07:00
Franck Nijhof
6932cf9534
Use contextlib.suppress where possible ( #48189 )
2021-03-23 14:36:43 +01:00
Paulus Schoutsen
04b335afe9
Allow filtering the logbook by context_id ( #47783 )
2021-03-12 09:04:02 -08:00
tkdrob
d8a2e0e051
Remove unnecessary variables from logbook ( #46350 )
2021-02-10 12:17:37 -10:00
Michael Chisholm
e35e460e69
Use parent_id to find cause of logbook events with new contexts ( #44416 )
...
* Use parent_id to find cause of events with new contexts
When looking up the causing event for logbook display, use the `parent_id`
of the current context if the current context just points back to the
current event.
This now shows in the logbook the cause of an event in the case that a
component has created a new context from an existing context and tied
them together via the `Context.parent_id`.
* Fix exception when parent event not available
* Use async_Log_entry to avoid jump into executor
2021-01-07 20:27:03 -10:00
Franck Nijhof
0e98bc5ea2
Skip template result parsing in several places ( #42408 )
...
* Skip template result parsing in several places
* Adjust alert integration
* Adjust Alexa integration
* Adjust apns integration
* Adjust arest integration
* Adjust dialogflow integration
* Adjust generic camera integration
* Adjust imap email content integration
* Adjust InfluxDB integration
* Adjust intent integration
* Adjust logbook integration
* Adjust HP ILO integration
* Adjust manual alarm control panel integration
* Adjust manual mqtt alarm control panel integration
* Adjust minio integration
* Adjust mqtt integration
* Adjust notify integration
* Adjust persistent notification integration
* Adjust rest integration
* Adjust rss feed template integration
* Adjust slack integration
* Adjust Xiaomi integration
* Adjust TCP integration
* Adjust Telegram Bot integration
* Bump CI cache version
* Revert "Bump CI cache version"
This reverts commit 875efe58cf
.
* Adjust demo tests
2020-10-26 19:29:10 +01:00