From de061bcb2b1ff050bf433c441400acea71e1652e Mon Sep 17 00:00:00 2001 From: mvn23 Date: Wed, 3 Oct 2018 23:13:24 +0200 Subject: [PATCH] Update counter docs to reflect restore config option. (#6479) --- source/_components/counter.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/_components/counter.markdown b/source/_components/counter.markdown index 123ebee79d9..1e628a65bd1 100644 --- a/source/_components/counter.markdown +++ b/source/_components/counter.markdown @@ -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 %}