I like that!
Is there a way to have the background of the markdown have the same color as the (in this case) orange warning above?
And second: How to make the cards appear as one card - without a space between the two cards?
You can display a read-only text in a card this way:
- Create a Text Input Helper (field) to hold the value in question, in HA UI > Settings > Devices & services > Helpers
- Add this field’s entity to the desired HA dashboard’s Entities Card. The field will be editable - which I understand you don’t want.
- Edit the Entities Card in YAML, and add type: simple-entity option for your above entity’s’ object, as per Entities Card - Home Assistant - the type: simple-entity will make the field read-only in the card.
No custom code or components needed.
Im looking to do the exact same thing, but for the life of me, I cant figure out how to edit the Entity Card in YAML.
Where is the YAML file for the Entity Cards or is there a way to access it via the helper?
Even simpler:
- In the web browser, open your HA dashboard containing the entities card in question (as an admin user, though this may not be necessary);
- Click the pencil icon in the upper-right corner to edit the dashboard in UI; you’ll be in the UI dashboard editor;
- Click Edit in the lower-left of the card in question; a card editing UI modal window will pop up.
- Click SHOW CODE EDITOR in the lower-left of the card editing UI modal window that pops up. That lets you edit the YAML. You can toggle back to UI by clicking SHOW VISUAL EDITOR.
- Click Save on the card editor and Done on the dashboard editor when finished.
Not all YAML features are supported by the UI editor, and in those cases the bits of such YAML code will be displayed seamlessly in the appropriate spots of the Visual Editor.