Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/_docs/backend/database.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,10 @@ group.all_switches 8018

If you don't want to keep certain entities, you can delete them permanently by using the [actions provided by the recorder](/integrations/recorder/#action-purge_entities).

### Use the SQL sensor for live queries

Beyond manual exploration, you can run SQL queries directly inside Home Assistant using the [SQL](/integrations/sql/) {% term integration %}. It connects to the same recorder database by default and lets you expose query results as sensor entities, or call queries from automations using the `sql.query` action — no external tools needed.

### Data Science Portal

For a more interactive way of working with the database, check the [Data Science Portal](https://data.home-assistant.io/).
2 changes: 1 addition & 1 deletion source/_integrations/sql.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ result:

See [supported engines](/integrations/recorder/#custom-database-engines) for which you can connect with this integration.

The SQL integration will connect to the Home Assistant Recorder database if "Database URL" has not been specified.
The SQL integration will connect to the Home Assistant Recorder database if "Database URL" has not been specified. For a full overview of available tables, columns, and indexes in that database, see the [Database](/docs/backend/database/) documentation.

There is no explicit configuration required for attributes. The integration will set all columns returned by the query as attributes.

Expand Down
Loading