1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00
ha-core/homeassistant/components/recorder/services.yaml
tkdrob 028a07d86f
Wrap up selectors (#50794)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00

61 lines
1.5 KiB
YAML

# Describes the format for available recorder services
purge:
name: Purge
description: Start purge task - to clean up old data from your database.
fields:
keep_days:
name: Days to keep
description: Number of history days to keep in database after purge.
selector:
number:
min: 0
max: 365
unit_of_measurement: days
repack:
name: Repack
description: Attempt to save disk space by rewriting the entire database file.
default: false
selector:
boolean:
apply_filter:
name: Apply filter
description: Apply entity_id and event_type filter in addition to time based purge.
default: false
selector:
boolean:
purge_entities:
name: Purge Entities
description: Start purge task to remove specific entities from your database.
target:
entity: {}
fields:
domains:
name: Domains to remove
description: List the domains that need to be removed from the recorder database.
example: "sun"
required: false
default: []
selector:
object:
entity_globs:
name: Entity Globs to remove
description: List the regular expressions to select entities for removal from the recorder database.
example: "domain*.object_id*"
required: false
default: []
selector:
object:
disable:
name: Disable
description: Stop the recording of events and state changes
enable:
name: Enable
description: Start the recording of events and state changes