kslb
(KSLBe)
January 10, 2019, 4:26pm
1
I have problem, today when I migrate from 84.3 to latest 85.0 HA migrate my lovelace configuration.
OK… No problem… But then I got many errors and I can not fix it - custom elements do not exits…
I tried to copy my custom configuration to RAW editor but after save procedure it delete resources…
Resources which are not saved:
resources:
- url: /local/custom_ui/dark-sky-weather-card.js?v=4
type: js
- url: /local/toggle-lock-entity-row.js?v=1
type: js
- url: /local/mini-graph-card.js?v=0.0.6
type: module
- url: https://unpkg.com/[email protected] /moment.js
type: js
- url: /local/custom_ui/calendar-card/calendar-card.js?v=2
type: module
When I tried to directly edit file “.storage\lovelace” Lovelace stopped working… so this solution is also not working…
Configuration looks like this:
Any idea how to solve this?
coza73
January 11, 2019, 10:03am
2
I have just found this too. Every time you save in the RAW editor it removes all the resources config.
coza73
January 11, 2019, 10:07am
3
Just to add more info I did not migrate from the yaml config. I was already there.
I had a test install that I upgraded first and it was all good. But as soon as I got into and saved using the RAW config editor the resources config lines were all removed.
It’s a bug in 0.85 will e fixed in 0.85.1
1 Like
cgtobi
(Tobi)
January 11, 2019, 6:37pm
5
For the time until 0.85.1 you can edit .storage/lovelace
directly.
e.g.
{
"data": {
"config": {
"resources": [
{
"type": "js",
"url": "/local/custom-card.js"
}
],
"title": "HOME",
"views": [
{
"cards": [
Now your custom cards should work fine again.
maxxie85
(Max)
January 12, 2019, 1:49pm
6
For me the resource configuration is still dropped in the 0.85.1 release running on docker.
kslb
(KSLBe)
January 12, 2019, 11:31pm
7
So is this resolved or not?
ViperRNMC
(Viper Rnmc)
January 15, 2019, 9:05am
8
same issue here with docker 0.85.1
maxxie85
(Max)
January 15, 2019, 12:28pm
9
As far I can tell, it isn’t resolved.
heartkingz
(Heartkingz)
January 16, 2019, 4:26pm
10
Checked this file, but the needed resource data is already there, but still gives me " custom element does not exist".
I’m on 0.85.1
cgtobi
(Tobi)
January 16, 2019, 6:59pm
11
Without further details about which custom element and full path of those resources it is difficult to help.
kslb
(KSLBe)
January 16, 2019, 7:52pm
12
My resources (but completly everything fail regarding that):
resources:
- url: /local/gauge-card.js?v=3
type: js
- url: /local/custom_ui/dark-sky-weather-card.js?v=4
type: js
- url: /local/toggle-lock-entity-row.js?v=1
type: js
- url: /local/mini-graph-card-bundle.js?v=0.1.0
type: module
- url: https://unpkg.com/[email protected] /moment.js
type: js
- url: /local/custom_ui/calendar-card/calendar-card.js?v=1.0.1
type: module
- url: /local/custom-lovelace/swipe-card/swipe-card.js?v=1.1.0
type: module
- url: /local/slider-entity-row.js?v=1
type: js
- url: /local/alarm_control_panel-card.js?v=1
type: js
kslb
(KSLBe)
January 16, 2019, 7:57pm
13
And here are my custom elements…
Download link:
cgtobi
(Tobi)
January 16, 2019, 8:02pm
14
Did you try them one by one?
kslb
(KSLBe)
January 16, 2019, 8:05pm
15
Yes… but problem is that it does not save changes at all… Just like that RAW editor is somehow broken or that file is corrupted under “config\.storage\”.
cgtobi
(Tobi)
January 16, 2019, 9:22pm
16
As far as I can tell the raw config editor
is fixed with 0.85.1. Did you stop home assistant when you were editing the in .storage/lovelace
?
kslb
(KSLBe)
January 16, 2019, 9:25pm
17
How do you mean stop home assistant?
kslb
(KSLBe)
January 16, 2019, 9:28pm
18
I did edit via RAW editor in lovelace GUI…
cgtobi
(Tobi)
January 16, 2019, 9:38pm
19
Not sure if you have to stop home assistant when editing the file on the system level (not the raw config editor). I just tried to add another custom component without issues (in the GUI). What exactly is the problem? Does the resource simply disappear?
kslb
(KSLBe)
January 16, 2019, 9:39pm
20
Exactly that - simply disappear after save button and after you re-open RAW editor…