xiaohongshu
xiaohongshu
ha-custom-cards
Configures HACS custom cards (ApexCharts, modern-circular-gauge, bubble-card, mini-graph-card, mushroom) for Home Assistant dashboards with validated configurations, color schemes, and error patterns. Use when asked to "add custom card", "install HACS card", "create gauge/graph", "ApexCharts dash...
Full skill instructions
Works with HACS installation (UI and API), Lovelace YAML dashboards, and custom card configurations.
Configure HACS (Home Assistant Community Store) custom cards for enhanced dashboard visualizations.
| Card | Purpose | Repository ID |
|---|---|---|
mini-graph-card | Compact sparkline graphs | 151280062 |
bubble-card | Section separators with icons | 680112919 |
modern-circular-gauge | Beautiful circular gauges | 871730343 |
lovelace-mushroom | Modern entity cards | 444350375 |
apexcharts-card | Advanced graphs with time axis | 331701152 |
Use this skill when you need to:
Do NOT use when:
All configurations in this skill are validated and tested. Critical errors (like ApexCharts span.end) are documented with solutions.
hacs/repository/download)type: custom:modern-circular-gauge
entity: sensor.temperature
name: Temperature
min: 10
max: 40
needle: true
segments:
- from: 10
color: "#3498db" # Cold - blue
- from: 18
color: "#2ecc71" # Comfortable - green
- from: 26
color: "#f1c40f" # Warm - yellow
- from: 32
color: "#e74c3c" # Hot - red
CRITICAL: The span.end field must be one of: "minute", "hour", "day", "week", "month", "year", "isoWeek"
type: custom:apexcharts-card
header:
show: true
title: 24 Hour History
show_states: true
graph_span: 24h
span:
end: hour # REQUIRED: must be minute/hour/day/week/month/year/isoWeek
yaxis:
- min: 0
max: 50
decimals: 1
apex_config:
chart:
height: 200
xaxis:
type: datetime
labels:
datetimeFormatter:
hour: "HH:mm"
legend:
show: true
series:
- entity: sensor.temperature
name: Temperature
color: "#e74c3c"
stroke_width: 2
Common ApexCharts Errors:
"span": {"end": "now"} → ❌ Causes parsing error"span": {"end": "hour"} → ✅ Valid valuetype: custom:bubble-card
card_type: separator
name: Section Name
icon: mdi:thermometer
type: custom:mushroom-climate-card
entity: climate.ac_unit
name: AC Name
hvac_modes:
- "off"
- cool
- heat
- auto
show_temperature_control: true
collapsible_controls: true
type: grid
columns: 3
square: false
cards:
- type: custom:modern-circular-gauge
entity: sensor.officeht_temperature
name: Temperature
min: 10
max: 40
needle: true
segments:
- from: 10
color: "#3498db"
- from: 18
color: "#2ecc71"
- from: 26
color: "#f1c40f"
- from: 32
color: "#e74c3c"
- type: custom:modern-circular-gauge
entity: sensor.officeht_humidity
name: Humidity
min: 0
max: 100
needle: true
segments:
- from: 0
color: "#e74c3c"
- from: 30
color: "#f1c40f"
- from: 40
color: "#2ecc71"
- from: 60
color: "#f1c40f"
- from: 70
color: "#e74c3c"
See examples/examples.md for complete environmental dashboard section with separators and graphs.
CRITICAL: Always use one of these valid values for span.end:
span:
end: minute # Start of current minute
end: hour # Start of current hour
end: day # Start of current day
end: week # Start of current week
end: month # Start of current month
end: year # Start of current year
end: isoWeek # Start of ISO week (Monday)
Never use: "now" or other string values - these cause errors.
type: custom:apexcharts-card
header:
show: true
title: Temperature & Humidity
graph_span: 24h
span:
end: hour
yaxis:
- id: temp
min: 0
max: 50
decimals: 1
- id: humidity
opposite: true
min: 0
max: 100
series:
- entity: sensor.temperature
name: Temperature
yaxis_id: temp
color: "#e74c3c"
stroke_width: 2
- entity: sensor.humidity
name: Humidity
yaxis_id: humidity
color: "#3498db"
stroke_width: 2
WARNING: JavaScript template annotations may cause errors. Use with caution.
apex_config:
annotations:
xaxis:
- x: "${ new Date(states['sun.sun'].attributes.next_rising).getTime() }"
borderColor: "#FFA500"
label:
text: Sunrise
style:
background: "#FFA500"
Note: If annotations cause configuration errors, remove them or use static timestamps instead.
See references/reference.md for complete ApexCharts advanced features and time formatting options.
import json
import websocket
ws_url = "ws://192.168.68.123:8123/api/websocket"
ws = websocket.create_connection(ws_url)
# Auth
ws.recv()
ws.send(json.dumps({
"type": "auth",
"access_token": os.environ["HA_LONG_LIVED_TOKEN"]
}))
ws.recv()
# Install card by repository ID
ws.send(json.dumps({
"id": 1,
"type": "hacs/repository/download",
"repository": 151280062, # mini-graph-card
}))
response = json.loads(ws.recv())
ws.close()
Check span.end uses valid value (hour/day/week/month/year)
# WRONG
span:
end: now # ❌
# CORRECT
span:
end: hour # ✅
Verify entity exists in Developer Tools → States
Check HACS installation and browser console (F12)
Remove or simplify template annotations
See references/reference.md for complete troubleshooting guide.
span.end MUST use valid enum values (minute/hour/day/week/month/year/isoWeek)xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience