Instructions on how to add Counters via UI (#20044)

This commit is contained in:
Sean Mooney 2021-10-29 06:02:47 -04:00 committed by GitHub
parent db255f99e4
commit e79e3fa761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,17 @@ The `counter` integration allows one to count occurrences fired by automations.
## Configuration ## Configuration
To add a counter to your installation, add the following to your `configuration.yaml` file: The preferred way to configure counter helpers is via the user interface. To add one, go to
**{% my helpers title="Configuration -> Helpers" %}** and click the add button;
next choose the "**Counter**" option.
To be able to add **Helpers** via the user interface you should have
`default_config:` in your `configuration.yaml`, it should already be there by
default unless you removed it. If you removed `default_config:` from your
configuration, you must add `counter:` to your `configuration.yaml` first,
then you can use the UI.
Counters can also be configured via `configuration.yaml`:
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry