diff --git a/HELP.md b/HELP.md index 9c422cf..57517cd 100644 --- a/HELP.md +++ b/HELP.md @@ -19,3 +19,15 @@ You need to enable node_status for each device, and they need to have `node_stat {% endfor %} {{ 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(', ') }} +```