It was definitely an issue with 2021.6ā¦ Iād say you have a caching issue. Latest HACS fixes caching by adding a version to the end of the resource URL. If you donāt use HACS did you manually change the version in the resource?
Slightly off topic butā¦
I havenāt āusedā HACS for a while (i.e. not added anything) but have just kept it up to date.
When did this behaviour begin?
And more fundamentally, are you saying that HACS adds the URL to your resources automatically? If so, where does it do this? I have always added them manually to a resources.yaml
file.
Sorry for the basic questionsā¦
Ok, I am slightly confused, please bear with me
Firstly Iād never noticed Configuration / Lovelace Dashboards / Resources
(I donāt use the UI much)
With that said, I currently have this in my config.yaml
lovelace:
mode: yaml
resources: !include lovelace/resources/resources.yaml
My resources.yaml
has the various URLs
- url: /hacsfiles/button-card/button-card.js
type: module
Clicking on a URL in āConfiguration / Lovelace Dashboards / Resourcesā gives me this:
Do I have a redundant resources.yaml
file?
Bonus question:
I have some fonts in resources.yaml
- url: https://fonts.googleapis.com/css?family=Oswald
type: css
If the file is redundant for HACS (and I can delete the URLs from it) will it still be read for my fonts?
If you are using YAML mode you have to manage the resources yourself. So no, it is not redundant.
Not sure about the fonts.
You can still use yaml for the resources BUT if you update a card you MUST add a version to the URL - see the cards docsā¦ otherwise you will be banging your head against a wall to break the caching of the old version
I hit F12 on my Home Assistant dashboard and noticed that I was getting a few messages like this:
You are doing it wrong:
Fold-entity-row should only EVER be used INSIDE an ENTITIES CARD.
See https://github.com/thomasloven/lovelace-fold-entity-row/issues/146
I see 6 of these messages when I load my frontend without a cache but I think Iāve only used it once. There are six collapsible items in my list so maybe thatās why. Can any of you see what Iām doing wrong?
card:
show_header_toggle: false
title: All groups
type: entities
state_color: true
filter:
exclude:
- entity_id: group.zm*
- entity_id: group.input_hs_wd200*
- entity_id: group.opensprinkler*
- entity_id: group.pihole*
include:
- domain: group
options:
type: custom:fold-entity-row
type: custom:auto-entities
sort:
method: none
Iām thinking it doesnāt like the custom:auto-entities
being on the outside but I want all the items to be collapsed. It looks like this:
Thanks!
You are using fold entity row inside a custom:auto-entities card.
It should only ever be used in an entities card. From the docs:
Actually, I think you can ignore the error.
Also from the docs:
Your card config conforms to this example:
Report it as a false error in the card repository issues. https://github.com/thomasloven/lovelace-fold-entity-row/issues?q=
I am trying to add a fan-button-row in a folding entities card.
The two lamps work but the fan at the buttom throws the error āentity not availableā
type: entities
entities:
- type: 'custom:fold-entity-row'
head: light.master_bedroom_ceiling_fan_light
entities:
- light.mike_s_bedroom_lamp
- light.darci_s_bedroom_lamp
- type: 'custom:fan-mode-button-row'
entities:
- fan.master_bedroom_ceiling_fan
title: Master Bedroom
But the Fan card alone works
type: entities
title: master ceiling fan
show_header_toggle: false
entities:
- entity: fan.master_bedroom_ceiling_fan
type: 'custom:fan-mode-button-row'
name: Master Bedroom Fan
I am new to YAML, any help appreciated.
Try this:
type: entities
entities:
- type: 'custom:fold-entity-row'
head: light.master_bedroom_ceiling_fan_light
entities:
- light.mike_s_bedroom_lamp
- light.darci_s_bedroom_lamp
- type: 'custom:fan-mode-button-row'
entity:
- fan.master_bedroom_ceiling_fan
title: Master Bedroom
I know nothing about the fan button row card you are using but you used āentitiesā in the first example that did not work and āentityā in the second example that did.
Thanks for the help @tom_l. I read this entry in the repo and I think Iāll just ignore it for now, I think he was addressing this issue specifically with the entry.
Yeah but with the exception he noted in the doc that I posted above.
Actually, I saw his little triangle on the github post and then looked at the source. Thereās a little hint in there.
I donāt get the message anymore.
Love this function, but how did I screw this up where the entity doesnāt have a window background?
Some of my code:
type: vertical-stack
cards:
- type: custom:fold-entity-row
head:
entity: light.all_lights
name: ALL LIGHTS
state_color: true
entities:
- entity: light.patio_lights
state_color: true
- entity: switch.pool_patio
state_color: true
- entity: light.driveway_path_lights
state_color: true
- type: custom:slider-entity-row
entity: light.driveway_string_lights
toggle: true
Not supposed to be used OUTSIDE the Entities card.
THANK YOU! Worked perfect.
It also fixed some oddity in one of my Lovelace dashboards where the fold would not work unless you waited like 5-10 seconds after opening that dashboard. Whatās weird is that the same ābadā code (but many other different cards) opened fine in another dashboard. Anyhow, allās wellā¦