#Importing dashboard

1 messages · Page 1 of 1 (latest)

flint topaz
plain shadow
#

Create a new dashboard, hit edit, hit the menu in the top right, raw configuration editor replace the code

flint topaz
plain shadow
#

Do you have all add-ons and correct entities?

flint topaz
#

Unable to parse YAML: YAMLException: duplicated mapping key (4:1) 1 | icon: mdi:printer-3d 2 | type: sections 3 | sections: 4 | icon: mdi:printer-3d -----^ 5 | type: sections 6 | sections:

plain shadow
#

No idea there sorry, hopefully someone else can help

open widget
#

@flint topaz Can you try to post the YAML with proper line breaks? I'm asking because the ^ character likely points out what exactly is the duplicate that HA chokes on.
Here's my guess at how this should look like:

| type: sections 3 
| sections: 4 
| icon: mdi:printer-3d
  -----^ 5 
| type: sections 6 
| sections:````
And it seems like ```mdi:printer-3d``` is used twice in your configuration.
flint topaz
flint topaz
#
    Line   4: icon: mdi:printer-3d
    Line  68:             icon: mdi:printer-3d
    Line  87:                 icon: mdi:printer-3d
    Line 143:             icon: mdi:printer-3d
    Line 207:                 icon: mdi:printer-3d
    Line 234:             icon: mdi:printer-3d
    Line 273:             icon: mdi:printer-3d
    Line 337:               icon: mdi:printer-3d
open widget
#

Yep, that's better. try removing one of the "icon: mdi:printer-3d" lines. Or comment them out by adding a # character.

flint topaz
#

its used more then twice

open widget
#

Yeah, the error is for the second instance I guess.
I'm at a loss understanding why an icon would cause a duplicate ID error, though.

flint topaz
#
Unable to parse YAML: YAMLException: duplicated mapping key (5:1) 2 | type: sections 3 | sections: 4 | #icon: mdi:printer-3d 5 | type: sections -----^ 6 | sections: 7 | - type: grid```
#

even commented out it give the error

open widget
#

Note that the error is for the next instance of 'icon: mdi:printer-3d" now. If you comment that one out, the error will likely come up for the next instance in your configuration.
Again, no idea why an icon would cause a duplicate error

flint topaz
#

i commented them all out i think

#

this is what online checker give's ```duplicated mapping key (5:1)

2 | type: sections
3 | sections:
4 | #icon: mdi:printer-3d
5 | type: sections
-----^
6 | sections:
7 | - type: grid```

open widget
#

Hm, that dashboard is a complex beast.
"Install process: You need to create the input_text helpers for job filament, total filament and total jobs. They get set by the automation. This dashboard uses the new sections feature so you can arrange the cards by drag and drop after creating them. Remember to change all the entity names to match yours - search for 3dprinter and replace all with your printer name."
Have you done all of this?

flint topaz
#

havent made the helpers yet

#

i did change all the entity names

open widget
#

And your printer has an entity name of 3dprinter?

flint topaz
#

yes i does

#

all the sensors work

elfin harbor
#

You've got the first 3 lines repeated twice

#

get rid of them, looks like a copy-paste error or something

flint topaz
#

thats what the site says

#

but ill try

elfin harbor
#

its wrong

#

and invalid

#

Please report it to the owner if there is a way to.

flint topaz
#

i have to paste it after

  - title: Home```

right?
elfin harbor
#

yeah that looks like a view

flint topaz
#

well atleast it allowed it