/ha-nova:external-sourcesfrom ha-nova
Queries long-term history from InfluxDB that Home Assistant writes but cannot read back. Uses InfluxDB's HTTP API directly with environment credentials.
Ships in ha-nova. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Data that Home Assistant SENDS somewhere but cannot read back:
Not in scope: Home Assistant's own history and statistics (ha-nova:history), energy data (ha-nova:energy), or writing to any external system. This skill is read-only by contract.
The influxdb integration is write-only from Home Assistant's side: it streams states out, and Home Assistant has no API to query them back. So "show me last year's temperature from InfluxDB" cannot go through the relay at all — the relay only talks to Home Assistant.
Instead, this skill queries InfluxDB's own HTTP API directly from this machine, using the client's normal HTTP tooling. Say that plainly before doing it: it is a different data path, with the user's own credentials.
Read and follow ../ha-nova/session-bootstrap.md.
ha-nova relay core --method GET --path /api/components and look for influxdb. If it is absent, Home Assistant is not writing to InfluxDB and there is nothing to query.HANOVA_INFLUXDB_URL (e.g. http://192.168.1.10:8086)HANOVA_INFLUXDB_TOKEN (2.x/3.x) or HANOVA_INFLUXDB_USER + HANOVA_INFLUXDB_PASSWORD (1.x)HANOVA_INFLUXDB_BUCKET (2.x) or HANOVA_INFLUXDB_DB (1.x)HANOVA_INFLUXDB_ORG (2.x — the query API requires it on self-hosted OSS; optional on Cloud, where the token implies it)
If they are unset, explain what to set and where (their shell profile) — then STOP. Never ask the user to paste a token into the conversation.The relay is NOT used for the query itself — it cannot reach other hosts, by design. It is used only to check the integration is present (above) and to resolve entity names (ha-nova:entity-discovery rules apply).
The query goes out with the client's own HTTP tool.
GET <url>/ping (1.x answers with an X-Influxdb-Version header) or GET <url>/health (2.x/3.x).domain and with entity_id = the object id WITHOUT the domain prefix (sensor.kitchen_temperature → "domain" = 'sensor', "entity_id" = 'kitchen_temperature'). Querying the full ID silently returns nothing.GET <url>/query?db=<db>&q=<InfluxQL> — e.g. SELECT mean("value") FROM "°C" WHERE "domain" = 'sensor' AND "entity_id" = 'kitchen_temperature' AND time > now() - 365d GROUP BY time(1d)POST <url>/api/v2/query?org=<org> with Authorization: Token <token>, a Flux body, and Accept: application/csvPOST <url>/api/v3/query_sql with SQL
Always bound the time range and aggregate in the query (GROUP BY time(...)) — never pull raw points for a year and summarize client-side.If the user keeps asking for the same InfluxDB series, the better answer is a Home Assistant entity: an influxdb sensor in YAML materializes a query as a real sensor, which then works with ha-nova:history and dashboards like anything else. Hand off to ha-nova:yaml-config for that — it is the durable fix.
401/403: the token is wrong or lacks read permission on that bucket — the user fixes it in InfluxDB, not here.entity_id tag (it holds only the object id) or a wrong measurement name (InfluxDB names measurements after the unit, e.g. °C). Show what you queried before concluding the data does not exist.Apply ../ha-nova/output-rules.md: plain words, HA names verbatim; unless asked or names clash, no ids, "entity", modes, Relay/HA URLs, snapshots, raw JSON.
Render the Report shape (output-cards.md). Name the source explicitly (InfluxDB, queried directly — not Home Assistant), the time range, and the query in short form; answer the question, do not paste raw rows.
Read-only skill: never issue mutating relay or service calls.
For write intent, hand off to the owning skill; unfamiliar writes go through ha-nova:fallback first.
Read-only by contract: this skill never constructs an INSERT, DELETE, DROP, or any schema change against an external store. If the user asks for one, refuse and point at the store's own tooling.
Credentials live in the user's environment only. Never echo a token, never write one into a file, never ask for one in chat.
The relay is not involved in these queries: say so, so the user knows their data path.
entity_id or measurement name — resolve, then query.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub markusleben/ha-nova --plugin ha-nova35 skills in this plugin
/adminUse when managing Home Assistant people, zones, tags, user accounts, general settings (name, location, units, time zone), Labs features, and analytics sharing — creating a person, drawing a zone, adding a tag, or reviewing who has access — through HA NOVA Relay./assistUse when working with Home Assistant's own built-in voice assistant (Assist) — testing what it understands, inspecting, editing, or creating Assist pipelines, managing which entities are exposed to voice, listing TTS/STT/wake-word engines, and teaching Assist custom sentences — through HA NOVA Relay. Not for Alexa or Google Assistant — setting those up is `ha-nova:integration-setup` (or `ha-nova:yaml-config` for a manual cloud config), and one that STOPPED working is a concrete failure for `ha-nova:diagnose`./backupUse when checking Home Assistant backup status, creating a backup (including a safety backup before risky changes), inspecting or deleting backups, or changing the automatic-backup schedule, retention, or locations through HA NOVA Relay./calendarUse when listing, reading, creating, updating, or deleting Home Assistant calendar events through HA NOVA Relay./cameraUse when working with Home Assistant cameras — taking a snapshot for the agent to look at, getting a stream URL, recording, casting a camera stream to a TV or speaker display, or turning a camera or its motion detection on and off — through HA NOVA Relay./dashboardUse when listing, reading, building, redesigning, updating, or deleting Home Assistant dashboards, views, and cards (installed custom cards included), checking dashboards for broken cards, or managing Lovelace resources through HA NOVA Relay.Other plugins' skills for the same job