#Importing dashboard
1 messages · Page 1 of 1 (latest)
Create a new dashboard, hit edit, hit the menu in the top right, raw configuration editor replace the code
hmm i tried that but i got an error
Do you have all add-ons and correct entities?
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:
No idea there sorry, hopefully someone else can help
@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.
like this?
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
Yep, that's better. try removing one of the "icon: mdi:printer-3d" lines. Or comment them out by adding a # character.
its used more then twice
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.
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
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
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```
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?
And your printer has an entity name of 3dprinter?
You've got the first 3 lines repeated twice
get rid of them, looks like a copy-paste error or something
i have to paste it after
- title: Home```
right?
yeah that looks like a view
well atleast it allowed it