mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Instructions on how to add Counters via UI (#20044)
This commit is contained in:
parent
db255f99e4
commit
e79e3fa761
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user