Update counter docs to reflect restore config option. (#6479)

This commit is contained in:
mvn23 2018-10-03 23:13:24 +02:00 committed by Fabian Affolter
parent fef1e594d5
commit de061bcb2b

View File

@ -29,9 +29,12 @@ Configuration variables:
- **[alias]** (*Required*): Alias for the counter. Multiple entries are allowed.
- **name** (*Optional*): Friendly name of the counter.
- **initial** (*Optional*): Initial value when Home Assistant starts. Defaults to 0.
- **restore** (*Optional*): Restore last known value when Home Assistant restarts. Defaults to True.
- **step** (*Optional*): Incremental/step value for the counter. Defaults to 1 (increments by 1).
- **icon** (*Optional*): Icon for entry.
If `restore` is set to `False` or no last known value is present, the counter will use the `initial` value upon start.
Pick an icon that you can find on [materialdesignicons.com](https://materialdesignicons.com/) to use for your input and prefix the name with `mdi:`. For example `mdi:car`, `mdi:ambulance` or `mdi:motorbike`.
## {% linkable_title Services %}