Add sensor force_update option (#371)

This commit is contained in:
Otto Winter 2019-10-21 19:41:18 +02:00
parent 5f5969b0b6
commit 89e125a6d1
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ Configuration variables:
- **internal** (*Optional*, boolean): Mark this component as internal. Internal components will
not be exposed to the frontend (like Home Assistant). Only specifying an ``id`` without
a ``name`` will implicitly set this to true.
- **force_update** (*Optional*, boolean): If true, this option will force the frontend (usually Home
Assistant) to create a state changed event when the sensor updates even if the value stayed the same.
Some applications like Grafana require this when working with Home Assistant, but beware it can
significantly increase the database size. Defaults to ``false``.
Automations: