Agent skill

Grafana Ha History

by Apocrathia in Apocrathia/home-assistant-config

Query historical Home Assistant entity state via Grafana's Home Assistant InfluxDB datasource (InfluxQL).

No licenceAuto-check passedDevOps & Cloud

Install Grafana Ha History

skills CLI
$ npx skills add Apocrathia/home-assistant-config --skill grafana-ha-history -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Apocrathia/home-assistant-config grafana-ha-history --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Apocrathia/home-assistant-config.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/grafana-ha-history .claude/skills/grafana-ha-history && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
grafana-ha-history
GitHub stars
179
Token cost
~580 tokens
SKILL.md length
232 words
Files
2
Skills in repo
22
Repo updated
First seen
Licence
None found

At a glance

Query historical Home Assistant entity state via Grafana's Home Assistant InfluxDB datasource (InfluxQL).

  • Works in 6 steps: Resolve the entity — domain + object_id… → Route the question → Pick a recipe in reference.md → …
  • The user asks about past states
  • SKILL.md covers Purpose, When to Use, Workflow and Hard rules, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Grafana Ha History is an agent skill from Apocrathia/home-assistant-config. Query historical Home Assistant entity state via Grafana's Home Assistant InfluxDB datasource (InfluxQL). Use when the user asks about past states, "was X on/off", "when did…", history for an entity, overnight activity, or numeric sensor series over a time window — not for current/live state.

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).

It sits in DevOps & Cloud, covering Monitoring and alerting. It works with Grafana, Home Assistant and Model Context Protocol. The repository describes itself as: Apocrathia's Home Assistant Configuration Files.

When your agent uses it

  • The user asks about past states
  • History for an entity
  • Overnight activity
  • Numeric sensor series over a time window — not for current/live state

Example prompts

  • “was X on/off”
  • “when did…”
  • “/grafana-ha-history”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Resolve the entity — domain + object_id from the HA entity_id
  2. Route the question
  3. Pick a recipe in reference.md
  4. Query via Grafana MCP grafana_api_request
  5. Answer with timestamps + values. Cite the InfluxQL used. Cap results
  6. Empty result → verify domain / entity_id tags (and measurement for

What it can do on your machine

Read from SKILL.md and the folder at commit e28308a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Grafana Ha History loads about 580 tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 232 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~580

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 232 words (~580 tokens).

“Look up past Home Assistant entity state from Grafana → InfluxDB (uid: homeassistant). Live/current state stays on the HA MCP.”

— opening of SKILL.md by Apocrathia
name
grafana-ha-history

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/grafana-ha-history of Apocrathia/home-assistant-config.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit e28308a

Compare with similar skills

Grafana Ha History next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Grafana Ha History compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Grafana Ha History this skillApocrathia/home-assistant-config179—~580Automated safety check: PassNone
Syncmetapawurb/hotpath-rs1.9k—~1.2kAutomated safety check: NotesMIT
Archestra Dev Observabilityarchestra-ai/archestra4.4k—~1.2kAutomated safety check: PassCustom licence
Frontmcp Observabilityagentfront/frontmcp146—~4.6kAutomated safety check: PassApache-2.0
Live Debugmacro-inc/macro4.6k—~2.4kAutomated safety check: NotesAGPL-3.0
Assistant MCPgrafana/skills282—~1.2kAutomated safety check: PassApache-2.0

Similar skills

  • Syncmeta

    pawurb/hotpath-rs

    Sync changes from the hotpath, hotpath-macros and hotpath-drain crates to their meta counterparts (hotpath-meta, hotpath-macros-meta and hotpath-drain-meta).

    1.9k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Archestra Dev Observability

    archestra-ai/archestra

    A skill your agent uses when changing Archestra tracing, metrics, OpenTelemetry, Tempo, Grafana, Prometheus, LLM/MCP spans, observability labels, or local observability setup.

    4.4k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Frontmcp Observability

    agentfront/frontmcp

    A skill your agent uses when adding tracing, structured logging, metrics, or monitoring to a FrontMCP server.

    146 GitHub stars~4.6k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Live Debug

    macro-inc/macro

    Debug the running local stack with traces, logs, and a shared headless browser.

    4.6k GitHub stars~2.4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Assistant MCP

    grafana/skills

    Official

    Connect AI coding agents (Claude Code, Cursor, VS Code, OpenAI Codex) to Grafana Cloud via the mcp-grafana Model Context Protocol server.

    282 GitHub stars~1.2k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Analyze the experiment precompute result-consistency canary across prod-US and prod-EU, deep-dive any issues, and produce an actionable report.

    40k GitHub stars~3.5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from Apocrathia/home-assistant-config

All 22 skills in this repo
  • Reconcile Context

    Apocrathia/home-assistant-config

    Fix drift in Home Assistant Homelab agent context (AGENTS.md, CLAUDE.md, .agents/context/, rules, skills, agents) against the repo.

    179 GitHub stars~931 tokensUpdated 19 days ago
    Auto-check passed
  • Alignment

    Apocrathia/home-assistant-config

    Interview the operator about a topic until shared understanding, walking each branch of the decision tree one at a time.

    179 GitHub stars~1.4k tokensUpdated 19 days ago
    Auto-check passed
  • Architecture Review

    Apocrathia/home-assistant-config

    Explore packages/, layout, and .agents/ for architectural friction (coupling, shallow packages, missing boundaries) and file or recommend agent issues under docs/issues/.

    179 GitHub stars~764 tokensUpdated 19 days ago
    Auto-check passed
  • Automation Debug

    Apocrathia/home-assistant-config

    Systematically diagnose and fix broken Home Assistant automations with a structured reproduce → triggers → conditions → actions workflow.

    179 GitHub stars~1.2k tokensUpdated 19 days ago
    Auto-check passed
  • Config Validate

    Apocrathia/home-assistant-config

    Validate Home Assistant YAML configuration for syntax, structure, entity references, duplicates, and secrets usage before applying changes.

    179 GitHub stars~932 tokensUpdated 19 days ago
    Auto-check passed
  • Create Agent

    Apocrathia/home-assistant-config

    Create a new agent persona under .agents/agents/. An agent skill from Apocrathia/home-assistant-config.

    179 GitHub stars~1.1k tokensUpdated 19 days ago
    Auto-check passed

Categories

Questions about Grafana Ha History

What does Grafana Ha History do?

Query historical Home Assistant entity state via Grafana's Home Assistant InfluxDB datasource (InfluxQL). Grafana Ha History is an agent skill from Apocrathia/home-assistant-config. Query historical Home Assistant entity state via Grafana's Home Assistant InfluxDB datasource (InfluxQL).

When should I use Grafana Ha History?

Grafana Ha History fits situations like: the user asks about past states; history for an entity; overnight activity; numeric sensor series over a time window — not for current/live state.

How do I install Grafana Ha History in Claude Code?

Run `npx skills add Apocrathia/home-assistant-config --skill grafana-ha-history -a claude-code`. Or copy the skill folder (.agents/skills/grafana-ha-history in Apocrathia/home-assistant-config) into .claude/skills/grafana-ha-history in your project. Claude Code loads it when a task matches its description.

How do I install Grafana Ha History in Codex?

Run `npx skills add Apocrathia/home-assistant-config --skill grafana-ha-history -a codex`. Or copy the skill folder (.agents/skills/grafana-ha-history in Apocrathia/home-assistant-config) into .agents/skills/grafana-ha-history in your project. Codex loads it when a task matches its description.

Can I use Grafana Ha History in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Apocrathia/home-assistant-config --skill grafana-ha-history -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/grafana-ha-history, .gemini/skills/grafana-ha-history, .github/skills/grafana-ha-history and .opencode/skills/grafana-ha-history in your project.

What does Grafana Ha History need to run?

SKILL.md names no scripts, command-line tools or credentials: Grafana Ha History is instructions for the agent only.

Does Grafana Ha History access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Grafana Ha History safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Grafana Ha History use?

No licence was found for Grafana Ha History or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Grafana Ha History use?

About 580 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Grafana Ha History?

Skills that share tags, products or a category with Grafana Ha History: Syncmeta (pawurb/hotpath-rs, 1.9k stars), Archestra Dev Observability (archestra-ai/archestra, 4.4k stars), Frontmcp Observability (agentfront/frontmcp, 146 stars) and Live Debug (macro-inc/macro, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Grafana Ha History?

Apocrathia (a GitHub user) maintains it in Apocrathia/home-assistant-config, which has 179 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on September 21, 2026.

Source: Apocrathia/home-assistant-config on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.