Andy Sensor Card - v1.0.8.5
A highly configurable Home Assistant Lovelace card that renders advanced SVG symbols with animations (garage doors, blinds, tanks, batteries, gates, fan/heatpump, images…) and lets you place (drag & drop) badges anywhere - with actions, images and sliders and much more.
Built for dashboards where “a simple icon + value” isn’t enough.

✨ Highlights
Advanced symbols (built-in)
New in 1.0.8
-
**Wind direction compass style with lots of adjustments
-
**SunFlow card that you can use with built in sun sensor or your own entities with lots of adjustments
-
Wash machine & Tumble dryer with animation and speed handling
-
Window Symbol with close/open support and separate blind and lamp entity
-
Garage door (single/double) with optional inside lamp glow, per-door widths, gap, and independent click actions, with lock safety functions for accidentally opening.
-
Blind (single/double) with interior feel + optional style (persienne/lamell).
-
Gate (sliding / door-gate) with left/right direction.
-
Tanks & levels: tank, IBC tank, silo, water-level segments, gas cylinder.
-
Batteries: liquid, segments, split-segments
-
Fan & Heatpump symbols with animated fan, set blade count, set color on blades based on interval/speed, animation on high speed.
-
Image symbol with cover/contain, optional frame, tint overlay, and dim-when-off behavior. Can be used as a background together with the badge framework.
Interval engine (colors + behavior)
A consistent interval framework matched by value or number up to, drives:
- Colors / outline / gradients
- Optional per-interval icon + icon color
- Optional “matched label” and “value replacement” including variables
- Optional
seconds per interval (used for smooth motion/animation behavior in relevant symbols)
- For Battery with segments, Water tank with segments, Garage door and blinds, interval are used to decide the amount of segments / panels. Each segment / panel with it’s own color settings.
Badges: place anything anywhere
- Use drag & drop or X, Y buttons to position badges freely across the card
- Multiple badge styles (solid / glass / outline / none / arrows (left,right,top,bottom), pump left, pump right, image…)
- Badge can show:
- Icon or image / Image can be dimmed when off, Icon can be colored by state or changed by interval.
- Optional slider (light/cover/number/input_number supported)
- Badge supports tap actions, including call-service with selected service based on domain of sensor or manual with JSON data
Variables
Use variables in labels, interval matched text, and badge labels:
<value>, <state>, <name>, <unit>, <entity_id>, <domain>
<last_changed>, <last_updated> + _iso and _rel
<attr:some_attribute> to insert any entity attribute
Table of contents
Installation
Option A — Install via HACS (published repository)
- Open HACS in Home Assistant.
- Go to Frontend.
- Search for Andy Sensor Card.
- Open the card and click Download.
- Restart Home Assistant (or reload frontend resources).
After installation, the Lovelace resource is usually added automatically by HACS.
If not, see “Add as a resource” below.
Option B — Install via HACS (custom repository)
Use this method if the card is not yet listed in the HACS store.
- Open HACS in Home Assistant.
- Click the ⋮ (three dots) menu in the top right.
- Select Custom repositories.
- Add the repository:
- Repository:
https://github.com/maglerod/andy-sensor-card
- Category: Lovelace
- Click Add.
- Go to Frontend in HACS.
- Search for Andy Sensor Card.
- Click Download.
- Restart Home Assistant (or reload frontend resources).
Option C — Manual installation (no HACS)
- Download
andy-sensor-card.js from this repository.
- Copy the file to your Home Assistant configuration directory: /config/www/andy-sensor-card.js
Add as a resource (if needed)
If the card does not appear automatically:
- Go to Settings → Dashboards → Resources
- Click Add Resource
- Enter:
- URL:
/local/andy-sensor-card.js?v=20260201-1
- Resource type:
JavaScript Module
- Save and perform a hard refresh in your browser (
Ctrl+F5 / Cmd+Shift+R).
Add the card to a dashboard
Using the UI editor
- Open your dashboard → Edit dashboard
- Click Add card
- Search for Andy Sensor Card
- Configure the card and save
⚡ Quick start
Minimal example (battery):
type: custom:andy-sensor-card
entity: sensor.my_battery
symbol: battery_liquid
Support
I’m a Home Automation enthusiast who spends way too many late nights building custom cards, dashboards and small tools for Home Assistant.
I love creating clean, useful UI components and sharing them for free with the community, and I try to help others whenever I can with ideas, code and support.
If you enjoy my work or use any of my cards in your setup, your support means a lot and helps me keep experimenting, improving and maintaining everything.
评论