{"repo":"PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card","free":true,"listed":false,"github":"https://github.com/PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card","clone":"git clone https://github.com/PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card.git","description":"This card displays provided Jinja2 template as an HTML content of a card. It uses exactly the same engine as Home Assistant in Developer tools.","language":null,"stars":94,"topics":["home-assistant","lovelace-card","template","jinja2"],"license":"MIT","category":"ai-agents","readme_excerpt":"Lovelace HTML Jinja2 Template card [![Ko-Fi][ko fi shield]][ko fi] [![buycoffee.to][buycoffee to shield]][buycoffee to] [![PayPal.Me][paypal me shield]][paypal me] [![Revolut.Me][revolut me shield]][revolut me] This card displays provided Jinja2 template as an HTML content of a card. It uses exactly the same engine as Home Assistant in Developer tools . Configuration options Key Type Required Default Description --- --- --- --- --- title string false - Title of a card content string true - Content of a card ignore line breaks boolean false false Disables changing line breaks to tags do not parse boolean false false Disables template parsing always update boolean false false Enables refreshing the card with every change of entity picture elements mode boolean false false Enables picture-elements mode entities list false [] List of additional entities whose updates should trigger refresh of the card Templates Entity state, example: {{ states('sun.sun') }} Entity attribute, example: {{ state attr('sun.sun', 'elevation') }] Detailed documentation: Templating Example usage Manual Installation 1. Download html-template-card.js to /www/custom lovelace/html template card directory: 2. Add card to resources in ui-lovelace.yaml or in raw editor if you are using frontend UI editor: Hints To use mdi icon follow example: . If content does not contain any template use flag do not parse: true to increase performance. If content does not contain entity id (e.g. because of loop) you have to p","default_branch":null,"files":null,"tree":[],"storefront":"/r/PiotrMachowski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}