Skip to content

Mdi:icon Only Chip

Description

example-image

This chip displays an icon using mdi.

Variables

Variable Default Required Notes
ulm_chip_mdi_icon_only_entity entity to link
ulm_chip_mdi_icon_only_icon mdi:icon to display
ulm_chip_mdi_icon_only_icon_color primary-text-color Allow to change icon color

Usage

- type: 'custom:button-card'
  template: chip_mdi_icon_only
  variables:
    ulm_chip_mdi_icon_only_entity: binary_sensor.bedroom_master_closed_door
    ulm_chip_mdi_icon_only_icon: mdi:door
Template Code
chip_mdi_icon_only.yaml
---
### Chip Mdi Icon Only ###
chip_mdi_icon_only:
  template: "chips"
  tap_action:
    action: "more-info"
    entity: "[[[ return variables.ulm_chip_mdi_icon_only_entity ]]]"
  show_icon: true
  icon: "[[[ return variables.ulm_chip_mdi_icon_only_icon ]]]"
  styles:
    grid:
      - grid-template-areas: "'i'"
    icon:
      - color: "[[[ return variables.ulm_chip_mdi_icon_only_icon_color; ]]]"