dawiddutoit/custom-claude/ha-graphs-visualization
Claude Code and agent skill by dawiddutoit/custom-claude
- community
Checking that the SKILL.md file is still in the repository.
Creates and configures Home Assistant graph visualizations using history-graph, statistics-graph, mini-graph-card, and apexcharts-card with time ranges, aggregations, and multi-sensor support. Use when displaying sensor data over time, creating trend charts, comparing historical data, or building energy/climate/air quality dashboards.
Install
npx vskill@latest install dawiddutoit/custom-claude/ha-graphs-visualizationSKILL.md
Works with Home Assistant native cards, HACS custom cards, and YAML configurations.
Home Assistant Graphs and Visualization
Create informative graphs and charts for sensor data visualization in Home Assistant dashboards.
When to Use This Skill
Use this skill when you need to:
- Display sensor data over time with history-graph for recent data (hours/days)
- Create long-term trend analysis with statistics-graph for weeks/months
- Build compact sparkline graphs with mini-graph-card for dashboard space efficiency
- Generate publication-quality charts with ApexCharts for multi-sensor comparisons
- Add dual Y-axis graphs for temperature + humidity or similar combinations
- Troubleshoot ApexCharts span.end errors with validated configurations
Do NOT use when:
- You only need current sensor values without history (use gauge or entity cards)
- Building real-time monitoring without historical context (use current state displays)
- You haven't installed required HACS cards (mini-graph-card or apexcharts-card)
Quick Start
This skill covers four main graphing solutions:
- History Graph (native): Simple sensor history with automatic long-term statistics
- Statistics Graph (native): Long-term trend analysis with aggregations
- Mini-Graph-Card (HACS): Popular, lightweight graphs with customization
- ApexCharts Card (HACS): Advanced publication-quality charts with annotations
Basic Examples
History Graph (Native):
ApexCharts (HACS) - VALIDATED CONFIG:
CRITICAL: The span.end field must be one of: "minute", "hour", "day", "week", "month", "year", "isoWeek"
Common ApexCharts Errors:
- ❌ WRONG:
"span": {"end": "now"}→ Causes parsing error - ✅ CORRECT:
"span": {"end": "hour"}→ Valid value
Usage
Follow these steps to create Home Assistant graphs:
- Select graph type based on data (native vs HACS)
- Configure time ranges appropriate for data frequency
- Add multiple entities for comparisons
- Set y-axis bounds for proper scaling
- Apply styling for readability
Graph Selection Decision Tree
Comparison Matrix
| Feature | History Graph | Statistics Graph | Mini-Graph-Card | ApexCharts | |
|---|---|---|---|---|---|
| Type | Native | Native | HACS | HACS | |
| UI Editor | ✅ Full | ✅ Full | ❌ YAML only | ❌ YAML only | |
| Performance | ⚡ Fast | ⚡ Fast | ⚡ Fast | ⚠️ Moderate | |
| Customization | 🔹 Basic | 🔹 Basic | 🔸 Good | 🔶 Extensive | |
| Multiple Entities | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | |
| Chart Types | Line | Line/Bar | Line/Bar | Line/Bar/Area/Column | |
| Time Range | Hours | Calendar periods | Hours | Flexible spans | |
| Statistics | Auto | Built-in | Manual | Manual | |
| Best For | Quick history | Long-term trends | Clean design | Power users |
History Graph Card (Native)
Best for: Simple sensor history visualization (recent data)
Basic Configuration
Key Features
- Displays sensor history from recorder database
- Automatically switches to long-term statistics for older data
- Bold line = recorder data, thin line = statistics
- If
hours_to_show> recorder retention: uses long-term statistics
Performance Note: History graphs are very fast because they use HA's built-in recorder data.
Statistics Graph Card (Native)
Best for: Long-term trend analysis (weeks, months, years)
Basic Configuration
See references/reference.md for stat types and period options.
Mini-Graph-Card (HACS)
Installation: HACS → Frontend → Search "mini-graph-card"
Best for: Minimalist design, lightweight, moderate customization
Basic Temperature Graph
Multiple Entities with Colors
See references/reference.md for complete configuration options and examples/examples.md for more patterns.
ApexCharts Card (HACS) - VALIDATED CONFIGURATIONS
Installation: HACS → Frontend → Search "apexcharts-card"
Best for: Advanced visualizations, publication-quality charts, complex comparisons
CRITICAL: Valid Span Configuration
Always use one of these valid values for `span.end`:
Never use: "now" or other string values - these cause errors.
Basic Time Series (VALIDATED)
Multi-Sensor with Dual Y-Axis (VALIDATED)
Supporting Files
- examples/examples.md - Comprehensive real-world examples (climate dashboards, air quality, energy usage, multi-room comparisons, annotations, area charts)
- references/reference.md - Technical depth (performance optimization, advanced ApexCharts configuration, troubleshooting, best practices, official documentation)
See references/reference.md for best practices, color schemes, troubleshooting, and performance optimization.
Notes
- History graphs automatically switch to long-term statistics for older data
- ApexCharts
span.endMUST use valid enum values (hour/day/week/month/year) - Mini-graph-card
points_per_hourcontrols performance (lower = faster) - Statistics graphs are best for long-term trends (weeks/months)
- Custom cards require HACS installation and HA restart
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ha-graphs-visualization/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dawiddutoit/custom-claude/ha-graphs-visualization)