mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
parent
422e716f06
commit
8b7bd01647
@ -26,51 +26,51 @@ recorder:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
recorder:
|
recorder:
|
||||||
description: Enables the recorder component. Only allowed once.
|
description: Enables the recorder component. Only allowed once.
|
||||||
required: true
|
required: true
|
||||||
type: map
|
type: map
|
||||||
keys:
|
keys:
|
||||||
db_url:
|
db_url:
|
||||||
description: The URL which points to your database.
|
description: The URL which points to your database.
|
||||||
required: false
|
required: false
|
||||||
type: URL
|
type: URL
|
||||||
purge_keep_days:
|
purge_keep_days:
|
||||||
description: Specify the number of history days to keep in recorder database after a purge.
|
description: Specify the number of history days to keep in recorder database after a purge.
|
||||||
required: false
|
required: false
|
||||||
default: 10
|
default: 10
|
||||||
type: int
|
type: int
|
||||||
purge_interval:
|
purge_interval:
|
||||||
description: How often (in days) the purge task runs. If a scheduled purge is missed (e.g., if Home Assistant was not running), the schedule will resume soon after Home Assistant restarts. You can use the [service](#service-purge) call `purge` when required without impacting the purge schedule. If this is set to `0` (zero), automatic purging is disabled.
|
description: How often (in days) the purge task runs. If a scheduled purge is missed (e.g., if Home Assistant was not running), the schedule will resume soon after Home Assistant restarts. You can use the [service](#service-purge) call `purge` when required without impacting the purge schedule. If this is set to `0` (zero), automatic purging is disabled.
|
||||||
required: false
|
required: false
|
||||||
default: 1
|
default: 1
|
||||||
type: int
|
type: int
|
||||||
exclude:
|
exclude:
|
||||||
description: Configure which components should be excluded
|
description: Configure which components should be excluded
|
||||||
required: false
|
required: false
|
||||||
type: map
|
type: map
|
||||||
keys:
|
keys:
|
||||||
domains:
|
domains:
|
||||||
description: The list of domains to be excluded from recordings.
|
description: The list of domains to be excluded from recordings.
|
||||||
required: false
|
required: false
|
||||||
type: List
|
type: List
|
||||||
entities:
|
entities:
|
||||||
description: The list of entity ids to be excluded from recordings.
|
description: The list of entity ids to be excluded from recordings.
|
||||||
required: false
|
required: false
|
||||||
type: List
|
type: List
|
||||||
include:
|
include:
|
||||||
description: Configure which components should be included in recordings. If set, all other entities will not be recorded.
|
description: Configure which components should be included in recordings. If set, all other entities will not be recorded.
|
||||||
required: false
|
required: false
|
||||||
type: map
|
type: map
|
||||||
keys:
|
keys:
|
||||||
domains:
|
domains:
|
||||||
description: The list of domains to be included in the recordings.
|
description: The list of domains to be included in the recordings.
|
||||||
required: false
|
required: false
|
||||||
type: List
|
type: List
|
||||||
entities:
|
entities:
|
||||||
description: The list of entity ids to be included in the recordings.
|
description: The list of entity ids to be included in the recordings.
|
||||||
required: false
|
required: false
|
||||||
type: List
|
type: List
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
Define domains and entities to `exclude` (aka. blacklist). This is convenient when you are basically happy with the information recorded, but just want to remove some entities or domains. Usually these are entities/domains which do not change (like `weblink`) or rarely change (`updater` or `automation`).
|
Define domains and entities to `exclude` (aka. blacklist). This is convenient when you are basically happy with the information recorded, but just want to remove some entities or domains. Usually these are entities/domains which do not change (like `weblink`) or rarely change (`updater` or `automation`).
|
||||||
@ -79,7 +79,7 @@ Define domains and entities to `exclude` (aka. blacklist). This is convenient wh
|
|||||||
# Example configuration.yaml entry with exclude
|
# Example configuration.yaml entry with exclude
|
||||||
recorder:
|
recorder:
|
||||||
purge_keep_days: 5
|
purge_keep_days: 5
|
||||||
db_url: sqlite:///home/user/.homeassistant/test
|
db_url: sqlite:////home/user/.homeassistant/test
|
||||||
exclude:
|
exclude:
|
||||||
domains:
|
domains:
|
||||||
- automation
|
- automation
|
||||||
@ -145,7 +145,7 @@ If the `recorder` component is activated then some components support `restore_s
|
|||||||
|
|
||||||
| Database engine | `db_url` |
|
| Database engine | `db_url` |
|
||||||
| :---------------|:---------------------------------------------------------|
|
| :---------------|:---------------------------------------------------------|
|
||||||
| SQLite | `sqlite:///PATH/TO/DB_NAME` |
|
| SQLite | `sqlite:////PATH/TO/DB_NAME` |
|
||||||
| MariaDB | `mysql://SERVER_IP/DB_NAME?charset=utf8` |
|
| MariaDB | `mysql://SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
| MariaDB | `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
| MariaDB | `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
| MySQL | `mysql://SERVER_IP/DB_NAME?charset=utf8` |
|
| MySQL | `mysql://SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user