u/Arvostettu-co

I've seen an old post where someone put a bit of code to get a list of entities so he could feed an AI with his informations.
I wanted to give a better bit of code.

Here is the last post https://www.reddit.com/r/homeassistant/comments/1hjc3u8/easy_way_to_get_a_list_of_all_your_entities_to/

Here is my proposition to get the entities by area :

{%- for area in areas() | sort %}
  {%- set ents = area_entities(area) | sort %}
  {%- if ents | count > 0 %}

{{ area_name(area) }}:
    {%- for e in ents %}
- {{ e }}
    {%- endfor %}
  {%- endif %}
{%- endfor %}

Go to Developer Tools --> Template --> Input this in Template Editor

Hope it might help

reddit.com
u/Arvostettu-co — 26 days ago