tung256
(tung)
June 27, 2019, 6:09pm
1
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:
Lovelace has this setting:
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.
eggman
(bertie basset)
June 27, 2019, 6:40pm
2
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.
tung256
(tung)
June 27, 2019, 6:57pm
3
i tried this and got error instantly. it wont let me save
resources: card-tools
- type: js
url: /local/card-tools.js?v=1
tung256
(tung)
June 27, 2019, 7:19pm
4
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:
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:
MRV
(Michael)
September 2, 2021, 12:44am
7
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