Add info how to list batteries entities
This commit is contained in:
parent
a884e69199
commit
2d06a42a8c
12
HELP.md
12
HELP.md
@ -19,3 +19,15 @@ You need to enable node_status for each device, and they need to have `node_stat
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ ns.result }}
|
{{ ns.result }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# List batteries entities
|
||||||
|
|
||||||
|
```
|
||||||
|
{% set ns = namespace(below=[]) %}
|
||||||
|
{% for s in states.sensor
|
||||||
|
if s.entity_id is search('battery') and s.state != 'unknown'
|
||||||
|
%}
|
||||||
|
{% set ns.below = ns.below + [s.entity_id] %}
|
||||||
|
{% endfor %}
|
||||||
|
{{ ns.below |sort| join(', ') }}
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user