Still not working
Sorry, spoke to soon, cleared cache and it seems to be working. Thanks for your patience!
Hi Thomas,
When using this, are you then able to select which order you want the cards in?
Thanks⊠Maybe you can answer this one as well in addition to the above described.
The standard ui or lovelace, you canât change the order right?
Right now it looks like it just puts in the cards how it wants.
The link describes the rules, and how they can be bent slightly. You canât get more control over it than that.
If that doesnât answer your question I donât understand what you are asking.
Looks like fold-entity-row doesnât work in 0.81.5.
EDIT: Seems it doesnât work with the section entity.
- type: custom:fold-entity-row
head:
type: section
label: Lights
Using some other entity as head works.
EDIT2: Fixed in 0.82.0b1
How did you get it to work? I run latest beta too and canÂŽt load the fold-entity.
I have this in log:
2018-11-03 21:10:04 ERROR (MainThread) [frontend.js.latest.201811031] https:/HASS/local/fold-entity-row.js:7:1 Uncaught SyntaxError: Unexpected token <
js file seems to be correct
Just updated to 0.82.0b1
- type: custom:fold-entity-row
head:
type: section
label: CONFIG
items:
- automation.motion_esp8266_02
- variable.motion_esp8266_02_delay
- input_number.motion_light_esp8266_02
- sensor.hyperion_color
Browser cache?
Do you have any groups using this?
I tried with the config in the readme:
type: entities
title: Folding groups
entities:
- type: custom:fold-entity-row
head: group.all_lights - type: custom:fold-entity-row
head: group.all_scripts - type: custom:fold-entity-row
head: group.all_automations
and got this error
Just a quick test, works.
- type: entities
title: Folding groups
entities:
- type: custom:fold-entity-row
head: group.all_lights
- type: custom:fold-entity-row
head: group.all_scripts
- type: custom:fold-entity-row
head: group.all_automations
Thanks for testing,
strange I have this error.
I prepared fold-entity-row for the beta a few days ago. If it doesnât work, make sure you have the latest version from github.
I just took this one
wget https://raw.githubusercontent.com/thomasloven/lovelace-fold-entity-row/master/fold-entity-row.js
Its 2 days old and put it in my www (as I did with the older one)
Just updated the fold-entity-row.js to the latest, and now I canât toggle the lights anymore. when I switch a light toggle it switches back after a second or so.
My lovelace code is:
- type: vertical-stack
cards:
- type: entities
entities:
- type: "custom:fold-entity-row"
head: group.upstairs
- type: entities
entities:
- head: group.downstairs
type: "custom:fold-entity-row"
- type: entities
entities:
- head: group.lounge
type: "custom:fold-entity-row"
- type: entities
entities:
- head: group.kitchen
type: "custom:fold-entity-row"
Any ideas?
I assume you are on 0.81.4 ?
This is fixed in 0.81.5. Has nothing to do with the fold-entity-row.
Anyone got a clue how to debug this?
All other custom lovelace seems to work so it is a bit strange, can it be something with javascript?
I have this in config:
javascript_version: latest
Nope - Iâm running 81.5
I think it was a browser cache problem - cleared and working now.
Not sure, but i think someone on Discord had the same issue.
Download cache problems. Have you downloaded the file in raw mode once again?