-
Notifications
You must be signed in to change notification settings - Fork 13
Module Icon
WJDDesigns edited this page May 3, 2026
·
1 revision
Module type:
icon· Category: Interactive · Free
Interactive status icons with state-based styling, animations, and tap actions.
- State-based display — different icon, color, size, and animation per active/inactive state
- Animations — pulse, spin, bounce, shake, fade, heartbeat, wobble, etc.
- Background shapes — circle, square, or none
- Tap actions — toggle, more-info, navigate, perform-action
- Template mode — drive icon, color, name, and visibility from Jinja2
- Entity — the entity this icon represents
- Active states / Inactive states — comma-separated state values to consider active / inactive
- Active icon / Inactive icon — different MDI icons per state
- Active color / Inactive color
- Active size / Inactive size — px
- Custom name — override the entity friendly name
-
Background shape —
none/circle/square - Background color — per-state
- Active animation — runs while in an active state (pulse, spin, …).
- Inactive animation — runs while in an inactive state.
Switch to template mode to drive the icon from a single Jinja expression:
{% if states('sensor.weather') == 'rainy' %}mdi:weather-rainy
{% elif states('sensor.weather') == 'sunny' %}mdi:weather-sunny
{% else %}mdi:weather-cloudy{% endif %}The same module supports template-driven icon_color, name, state_text, and visibility.
Tap / hold / double-tap. Default action is toggle (or more-info for non-toggleable entities).
Standard 4-tab pattern. See Logic-and-Conditions and Design-System.
- Entity:
light.living_room - Active icon:
mdi:lightbulb - Inactive icon:
mdi:lightbulb-outline - Active color:
#fdd835 - Active animation:
pulse - Tap action:
toggle
- Entity:
sensor.phone_battery_level - Template mode → icon:
mdi:battery-{{ (states('sensor.phone_battery_level') | int / 10) | round(0) | int * 10 }} - Template color:
{% if states('sensor.phone_battery_level') | int < 20 %}#e53935{% else %}#43a047{% endif %}
- Entity:
alarm_control_panel.home - Active states:
armed_home, armed_away, armed_night - Active animation:
heartbeat - Tap action:
more-info
- For just-text labels, see Module-Text.
- For an entity tile with name + value, see Module-Info.
- For action-styled buttons, see Module-Button.
Ultra Card · Website · Discord · GitHub Issues · HACS · MIT licensed
- Layout-System
- Logic-and-Conditions
- Templates-and-Jinja
- Actions
- Design-System
- Custom-Variables
- Presets-and-Marketplace
- Pro-and-Cloud
- Modules-Overview
- Content
- Data
- Interactive
- Layout
- Media / Background
- Animated (Pro)
- Inputs (Helpers)
- Card embeds