Node-RED

Node-RED is a skill for Claude Code from tonylofgren/aurora-smart-home. It costs 76 tokens per session (3,161 once invoked), scanned A, original, MIT.

Instructions for building Node-RED visual automation flows that control Home Assistant, a platform for managing smart-home devices.

In plain words
What is it for?
Use it to create trigger-based automations, call Home Assistant services, run functions, store context, and build timer or error-handling patterns.
Why use it?
It helps produce flows with current node names, required files, error handling, and recovery guidance so the automation can be installed and maintained.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aurora plugin — 6 skills, 1 command shipped together

Good fit Use it to create trigger-based automations, call Home Assistant services, run functions…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonylofgren/aurora-smart-home/node-red
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonylofgren/aurora-smart-home --skill node-red
Clone the repo
git clone --depth 1 https://github.com/tonylofgren/aurora-smart-home

Made for: Claude Code.

Or install aurora, the plugin that ships this one along with the rest of its 6 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Node-RED

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonylofgren/aurora-smart-home/node-red.svg)](https://agentmods.dev/skills/tonylofgren/aurora-smart-home/node-red)
Your own site
<a href="https://agentmods.dev/skills/tonylofgren/aurora-smart-home/node-red"><img src="https://agentmods.dev/badge/skills/tonylofgren/aurora-smart-home/node-red.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,161 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.03161
Opus 5 $0.00038 $0.01580
Sonnet 5 $0.00015 $0.00632
Haiku 4.5 $0.00008 $0.00316

Measured 7d ago against content hash 9f395d902a49, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Node-RED scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await axios.get(msg.url);
node-red/SKILL.md · 396 lines

How it starts

The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Node-RED for Home Assistant

Build Node-RED flows using node-red-contrib-home-assistant-websocket nodes (v0.80+).

Requirements: Node-RED 4.x (Node.js 18+), Home Assistant 2024.3.0+.

The Iron Law

USE CURRENT NODE NAMES - NEVER OUTDATED ONES

The node-red-contrib-home-assistant-websocket package has renamed several nodes. Using old names produces broken flows that silently fail.

Delivery Contract (read first, applies to every output)

Every flow ships as files in a project folder on disk. Chat output is not delivery. A flow JSON pasted in chat is not a delivered flow. Create <project-slug>/ (or write into the existing project folder in a multi-agent build), write the flow JSON under node-red-flows/, and write a README.md per Iron Law 3 in ../aurora/souls/river.md. README sections follow ../aurora/references/deliverables/manual-format.md: What this does, Installation, Troubleshooting, Recovery. No chat-only output option.

The Process

User request
    │
    ▼
HA server config node exists in Node-RED?
    │ no ─────────────────────────┐
    │ yes                          ▼
    │                       Set up `server` config first
    │                       (URL, access token, allow self-signed if needed)
    │                              │
    ▼ ◀────────────────────────────┘
Pick trigger node (current names only — see table below)
    │
    │  time-based?    ──▶  inject (time) or trigger-state with cron
    │  state-change?  ──▶  trigger-state OR events:state
    │  event?         ──▶  events:all (filtered by event_type)
    │  external?      ──▶  http in (webhook) / mqtt in
    │
    ▼
Add filter/condition (current-state, switch, template)
    │
    ▼
Pick action node (current names only)
    │
    │  call HA service?     ──▶  call-service (`action`, not `service`)
    │  set entity state?    ──▶  call-service light.turn_on / etc.
    │  send HTTP?           ──▶  http request
    │  notify?              ──▶  call-service notify.*
    │
    ▼
Battery-drain risk? ──yes──▶ Add throttle/delay (rate-limit msgs/sec)
    │ no
    ▼
Add status indicators (debug node OR catch node for error path)
    │
    ▼
Test in editor with debug node, fix wiring
    │
    ▼
Deploy and verify in HA
    │
    ▼
Document the flow (description on key nodes)

Read the full file on GitHub · 396 lines

Files

What ships with it

45 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 396 lines · 76 tokens per session scan A 9f395d902a49

Subscribe to this mod's changes

Node-RED is a skill published in the GitHub repository tonylofgren/aurora-smart-home (104 stars, last pushed yesterday), licensed MIT. It adds 76 tokens to every session and 3,161 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

bat-story-eval

Compare MCP tool behavior between target and baseline versions using pre-built and custom stories with diff-based triage.

homeassistant-ai/ha-mcp · 26 tokens

contrib-pr-review

Review a contribution PR for safety, quality, and readiness. Checks for security concerns, test coverage, size appropriateness, and intent alignment. Use when reviewing external contributions.

homeassistant-ai/ha-mcp · 39 tokens

bat-adhoc

Run bot acceptance tests to validate MCP tools work correctly from a real AI agent's perspective. Use when testing PRs, detecting regressions, or verifying tool changes end-to-end with Claude/Gemini CLIs.

homeassistant-ai/ha-mcp · 48 tokens

issue-to-pr-resolver

Implement a GitHub issue end-to-end — create a worktree branch, implement the feature with tests, create a draft PR, then iteratively resolve all CI failures and review comments until the PR is clean. Use when you need to fully implement a GitHub issue from start to merge-ready. Triggers on "implement issue", "resolve…

homeassistant-ai/ha-mcp · 85 tokens

my-pr-checker

Manage your own GitHub pull requests — check CI status, inline review comments, PR-level comments, resolve review threads, fix issues, and iterate until all checks pass and threads are resolved. Use for managing your own PRs (not external contributions). Triggers on "check my PR", "check PR", "/my-pr-checker ".

homeassistant-ai/ha-mcp · 75 tokens

contributors-update

Find merged PR authors missing from README and update the contributors list after approval.

homeassistant-ai/ha-mcp · 17 tokens