All Projects → PiotrMachowski → lovelace-html-card

PiotrMachowski / lovelace-html-card

Licence: MIT license
This card displays provided data as an HTML content of a card.

Projects that are alternatives of or similar to lovelace-html-card

tv-card
📺 TV Remote Card
Stars: ✭ 139 (+434.62%)
Mutual labels:  lovelace-card
PiotrMachowski
This repository is used to present a library of my custom elements for Home Assistant.
Stars: ✭ 26 (+0%)
Mutual labels:  lovelace-card
ha-floorplan
Bring new life to Home Assistant. By mapping entities to a SVG-object, you're able to control devices, show states, calling services - and much more. Add custom styling on top, to visualize whatever you can think of. Your imagination just become the new limit.
Stars: ✭ 415 (+1496.15%)
Mutual labels:  lovelace-card
lovelace-hass-aarlo
Lovelace card for hass-aarlo integration.
Stars: ✭ 41 (+57.69%)
Mutual labels:  lovelace-card
compass-card
A Lovelace card that shows a directional indicator on a compass for Home Assistant
Stars: ✭ 64 (+146.15%)
Mutual labels:  lovelace-card
Home-Assistant-Lovelace-HTML-Jinja2-Template-card
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.
Stars: ✭ 27 (+3.85%)
Mutual labels:  lovelace-card
Home-Assistant-Lovelace-Local-Conditional-card
This card can show and hide a specific card on current device while not affecting other windows. It does not require any integration to run.
Stars: ✭ 30 (+15.38%)
Mutual labels:  lovelace-card
ioBroker.lovelace
Visualization with Lovelace-UI
Stars: ✭ 41 (+57.69%)
Mutual labels:  lovelace-card
button-text-card
Custom, "neumorphism" Lovelace card
Stars: ✭ 95 (+265.38%)
Mutual labels:  lovelace-card
lovelace-digital-clock
A custom digital clock card for Home Assistant
Stars: ✭ 22 (-15.38%)
Mutual labels:  lovelace-card
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+134.62%)
Mutual labels:  lovelace-card
lovelace-collapsable-cards
A custom Lovelace card that hides other cards behind a dropdown toggle
Stars: ✭ 83 (+219.23%)
Mutual labels:  lovelace-card
HA-SIP
A SIP client inside home assistant!
Stars: ✭ 81 (+211.54%)
Mutual labels:  lovelace-card
MeteoalarmCard
Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
Stars: ✭ 48 (+84.62%)
Mutual labels:  lovelace-card
power-distribution-card
A Lovelace Card for visualizing power distributions.
Stars: ✭ 117 (+350%)
Mutual labels:  lovelace-card
lovelace-rpi-monitor-card
A Raspberry Pi status display Card for Home Assistant Lovelace
Stars: ✭ 102 (+292.31%)
Mutual labels:  lovelace-card

Lovelace HTML card

hacs_badge buymeacoffee_badge paypalme_badge

This card displays provided data as an HTML content of a card.

Configuration options

Key Type Required Default Description
title string False - Title of a card
content string True - Content of a card

Templates

  • Entity state, example: [[ sun.sun ]], [[ sun.sun.state ]]
  • Entity attribute, example: [[ sun.sun.attrubutes.elevation ]]

Example usage

Example

views:
- name: Example
  cards:
    - type: custom:html-card
      title: 'HTML card'
      content: |
        Sun state: <b>[[sun.sun]]</b>, elevation: [[sun.sun.attributes.elevation]]</br>
        <b>Hello</b> there!<p>General <u>Kenobi!</u></p>
        <img src="https://i.redd.it/ltxppihy4cyy.jpg" width="70%"/></br>
        <ha-icon icon="mdi:speaker"></ha-icon> Volume: [[input_number.system_volume]]%</br>
        <center><img src="https://vignette.wikia.nocookie.net/starwars/images/f/fa/Modal_Nodes_02.jpg" width="[[input_number.system_volume]]%"/></center>

Installation

  1. Download html-card.js to /www/custom_lovelace/html_card directory:
    mkdir -p www/custom_lovelace/html_card
    cd www/custom_lovelace/html_card/
    wget https://github.com/PiotrMachowski/lovelace-html-card/raw/master/dist/html-card.js
  2. Add card to resources in ui-lovelace.yaml or in raw editor if you are using frontend UI editor:
    resources:
      - url: /local/custom_lovelace/html_card/html-card.js
        type: js

Hints

  • To use mdi icon follow example: <ha-icon icon="mdi:weather-sunny"></ha-icon>
  • If you need more powerful templates check out HTML Template card
  • The only improvement over markdown-mod that html-card provides is ability to use css styles.
  • This card is available in HACS

Buy Me A Coffee

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].