Skip to content

Back Chip

Description

example-image

This is a back-button, primarily used if you switch between views and want a convenient way back.

Variables

Variable Default Required Notes
ulm_chip_back_path /ui-lovelace-minimalist/0 Set the navigation path to your default view, eg. ui-lovelace-minimalist/home or lovelace. Not required if you run a default installation with HACS.

Usage

- type: "custom:button-card"
  template: chip_back
  variables:
    ulm_chip_back_path: /ui-lovelace-minimalist/home
Template Code
chip_back.yaml
---
### Chip Back ###
chip_back:
  template: "chips"
  variables:
    ulm_chip_back_path: >
      [[[
        return hass["panelUrl"];
      ]]]
  tap_action:
    action: "navigate"
    navigation_path: "[[[ return variables.ulm_chip_back_path; ]]]"
  show_icon: true
  icon: "mdi:arrow-left"
  styles:
    grid:
      - grid-template-areas: "'i'"