mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Clarify optional parameters for purge_entities service call (#20341)
This commit is contained in:
parent
3df3803ef9
commit
b0a096bd4c
@ -219,14 +219,16 @@ Note that purging will not immediately decrease disk space usage but it will sig
|
|||||||
|
|
||||||
### Service `purge_entities`
|
### Service `purge_entities`
|
||||||
|
|
||||||
Call the service `recorder.purge_entities` to start a task that purges events and states from the recorder database that match any of the specified `entity_id`, `domains` and `entity_globs` fields. Note: leaving all three parameters empty will result in all entities being selected for purging.
|
Call the service `recorder.purge_entities` to start a task that purges events and states from the recorder database that match any of the specified `entity_id`, `domains` and `entity_globs` fields. Leaving all three parameters empty will result in all entities being selected for purging.
|
||||||
|
|
||||||
| Service data attribute | Optional | Description |
|
| Service data attribute | Optional | Description |
|
||||||
| ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `entity_id` | yes | A list of entity_ids that should be purged from the recorder database. |
|
| `entity_id` | yes<sup>*</sup> | A list of entity_ids that should be purged from the recorder database. |
|
||||||
| `domains` | yes | A list of domains that should be purged from the recorder database. |
|
| `domains` | yes | A list of domains that should be purged from the recorder database. |
|
||||||
| `entity_globs` | yes | A list of regular expressions that identify entities to purge from the recorder database. |
|
| `entity_globs` | yes | A list of regular expressions that identify entities to purge from the recorder database. |
|
||||||
|
|
||||||
|
Note: The `entity_id` is only optional when used in `automations.yaml` or `scripts.yaml`. When using the UI to call this service then it is mandatory to specify at least one `entity_id` using the Target Picker or via YAML mode.
|
||||||
|
|
||||||
### Service `disable`
|
### Service `disable`
|
||||||
|
|
||||||
Call the service `recorder.disable` to stop saving events and states to the database.
|
Call the service `recorder.disable` to stop saving events and states to the database.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user