Home Assistant Markdown Cards

I have had XKCD comics in my home assistant dashboard for a while now, but never had the alt text or the title in the dashboard. I wasn’t entirely sure how to get those into the UI in a nice clean way (I’m not very good with the templates yet). I finally found the nice clean way to do it that should be pretty flexible to use in the future too, markdown cards.

The markdown card can be added to your dashboard just like every other card, and is available in home assistant by default. In it you can format and display any text using markdown, but on top of that, you can also format and display text from templates as well. So in my example below for my XKCD comics, I use a header 1 format tag with the XKCD title and standard text for the XKCD alt text.

Card Editor

This is in my dashboard with the image which gives me a nice little comic reader and works out well. While my example is a bit silly, the use of markdown cards for formatting and display is very flexible for future use. I’m happy with the final result and now I think I can say that my XKCD integration is complete.

In Action