Lovelace auto-entities not working in .93.2

i dont know why i am having no luck with getting Thomas’s lovelace auto-entities.js working.
home asssistant already has these files as seen here:

image

Lovelace has this setting:
image

when i try to add a card manual as seen here,

type: custom:auto-entities
card:
  type: entities
  title: devices present
filter:
  include:
    - domain: device_tracker
      state: 'home'

i get error of: Custom element doesn’t exist: auto-entities.
tried for the past 3 hrs and going nuts.

It looks like it’s in your www folder, that’s just /local not /local/plugins.

Also you need to add card-tools to the resources too.

i tried this and got error instantly. it wont let me save

resources: card-tools
  - type: js
    url: /local/card-tools.js?v=1

i got it working now. i had to load both js files and the syntax is as follows.

resources:
  - type: js
    url: /local/card-tools.js?v=1
  - type: js
    url: /local/auto-entities.js?v=1

now, i can filter easily with this code:

type: custom:auto-entities
card:
  type: entities
  title: devices away
filter:
  include:
    - domain: device_tracker
      state: 'away'

I’m very interested in this thread. I seem to be having the same exact issue. In my case, this is a relatively fresh install of Home Assistant, and I’m trying to use the popular auto-entities Lovelace plugin. I’ll post my details shortly.

I installed auto-entities via HACS:

Here’s the installation location as seen via Terminal:

image

I configured the resource via Configurations -> Lovelace Dashboards -> Resources:

I’ve kept LoveLace in UI mode, and am adding the card config via raw mode:

Just wanted to add my $0.02 here.

I had the exact same problem, a red card saying that auto-entities does not exist.

For me it was an issue of file permissions.

suco chmod 777 …/config/www/auto-entities.js

Fixed everything.

1 Like