-
Hi! My floor plan card has become almost unreadable and if I enter a comment (# Settings for lights) in order to find it faster, I can find the line where I have the settings for the behavior of the lights. But it would be even better if I could have a separate yaml file that I could edit with Visual studio? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Not sure I inderstand the problem. As you say you can add comments to the YAML. You don't have to use the HA UI to edit the view. I have mine in YAML and I edit it with notepad++ |
Beta Was this translation helpful? Give feedback.
-
OzGav, I don't know why I |
Beta Was this translation helpful? Give feedback.
-
Apparently, I added the following to configuration.yaml # Set Lovelace mode
lovelace:
mode: storage
dashboards:
# Add dashboard in YAML mode
floorplan-community:
mode: yaml
filename: lovelace/floorplan-community.yaml
title: Floorplan Community
icon: mdi:account-voice
show_in_sidebar: true
require_admin: false Since it didn't bring me the desired result, I Now the problem has arisen because the grid card, which also contains the floor plan card, does not show the floor plan card! Did the code above change the settings so much somewhere that simply removing the code and rebooting doesn't fix them and I have to do something else to achieve this? |
Beta Was this translation helpful? Give feedback.
-
It's a bit more complicated but doable!:
lovelace:
mode: storage
dashboards:
lovelace-yaml:
mode: yaml
title: Flore plan-Grid
icon: mdi:floor-plan
show_in_sidebar: true
filename: fp.yaml and save it.
|
Beta Was this translation helpful? Give feedback.
It's a bit more complicated but doable!:
#1
In the root directory, you create a file called fp.yaml, for example#2
In configuration.yaml add:and save it.
#3
You copy the content of the card in yaml format from the desired one to the created fp.yaml file and save it.#4
Restart HA.#5
The new icon and name you specified in configuration.yaml will appear in your sidebar.#6
You can now delete the old card!