Skip to content

Instantly share code, notes, and snippets.

@genebean
Created December 20, 2022 04:56
Show Gist options
  • Save genebean/ab294f1196c4adcc6d48f9c379bd24f6 to your computer and use it in GitHub Desktop.
Save genebean/ab294f1196c4adcc6d48f9c379bd24f6 to your computer and use it in GitHub Desktop.
sudo Mushroom Updates card for Home Assistant
type: custom:mushroom-template-card
primary: HACS Updates
secondary: |-
{% if is_state("sensor.hacs", "0") -%}
Up-to-date
{%- else -%}
{{ states("sensor.hacs") }} available
{% endif %}
icon: hacs:hacs
layout: vertical
badge_color: ''
badge_icon: ''
icon_color: |-
{% if is_state("sensor.hacs", "0") -%}
green
{%- else -%}
amber
{% endif %}
tap_action:
action: navigate
navigation_path: /hacs/entry
hold_action:
action: none
double_tap_action:
action: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment