Any way to add comments when editing a dashboard card

Hello all!

Is there anyway to do the subject? If so, is there a keyboard shortcut to comment the line when editing the card manually. Below is the area of the software I am talking about:

No.

The yaml from the UI editor is stored as json, and json does not support comments.

You can only use comments in yaml mode.

Ahh, I follow you. Thank you for your response @tom_l

If this can help, Some cards allow a “description” field, which you can leverage to take notes.
It survives the yaml/json conversions.

1 Like

I actually looked for an “alias” option in the Entities card before posting so I could suggest that. No luck. Just checked again. No description option either unfortunately.

Seems like the OP card header shows “vertical-stack” as the card type.
Could definitely be wrong but I think the description field works with it.

image

There is no such a “description” option.

Funny but you can add any option and even save the card.
But the UI editor will not work.

This is an unofficial way to comment cards:
__comment: Comment here

Card comments

It saves and the card still works, but the visual editor doesn’t

I would not use it. It could all come crashing down with the next frontend update.

1 Like

This is my way:
if need to describe smth in UI itself - I use markdown:

type: vertical-stack
cards:
  - type: markdown
    content: |
     some comments
     even an image may be added here
    style: |
      ha-card { color: red; }

  - type: ...
    ... any card

изображение

1 Like

Thank you for this @Ildar_Gabdullin and thank you for all of the help and suggestions you have given me any multiple other threads. Very thankful for your help!

1 Like