Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Node-RED

БесплатноБез исполняемых скриптовНе проверен

Node-RED visual automation flows for Home Assistant. Covers visual automation, flow JSON, trigger-state, api-call-service, function nodes, context storage…

tonylofgrenот tonylofgren★ 112 звёзд на GitHub10 установок в других каталогах

Об этом скилле

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)

Critical: Node Names Have Changed

STOP. If you're about to use any of these node types, you're using outdated names:

WRONG (Old) CORRECT (Current)
server-state-changed trigger-state or events:state
poll-state poll-state (unchanged but check config)
call-service api-call-service

Trigger Node Configuration (Current API)

{
  "type": "trigger-state",
  "entityId": "binary_sensor.motion",
  "entityIdType": "exact",
  "constraints": [
    {
      "targetType": "this_entity",
      "propertyType": "current_state",
      "comparatorType": "is",
      "comparatorValue": "on"
    }
  ],
  "outputs": 2
}

entityIdType options: exact, substring, regex

There is NO list type. To monitor multiple entities, use regex:

"entityId": "binary_sensor\\.motion_(1|2|3)",
"entityIdType": "regex"

Service Call Configuration (Current API)

{
  "type": "api-call-service",
  "domain": "light",
  "service": "turn_on",
  "entityId": ["light.living_room"],
  "data": "",
  "dataType": "json"
}

Or dynamic via msg:

{
  "type": "api-call-service",
  "domain": "",
  "service": "",
  "data": "",
  "dataType": "msg"
}

With function node before:

msg.payload = {
  action: "light.turn_on",
  target: { entity_id: ["light.living_room"] },
  data: { brightness_pct: 80 }
};
return msg;

Current State Node - Single Entity Only

api-current-state queries ONE entity, not patterns.

{
  "type": "api-current-state",
  "entity_id": "person.john"
}

To check multiple entities, use function node:

const ha = global.get("homeassistant").homeAssistant.states;
const people = Object.keys(ha)
  .filter(id => id.startsWith("person."))
  .filter(id => ha[id].state !== "home");
msg.awayPeople = people;
return msg;

Entity Nodes Require Extra Integration

The following nodes require hass-node-red integration (separate from the websocket nodes):

  • ha-entity (sensor, binary_sensor, switch, etc.)
  • Entity config nodes

Always mention this prerequisite when using entity nodes.

Stable Entity Nodes (v0.71.0+)

These nodes were promoted from beta to stable in September 2024:

  • number - expose HA number entities
  • select - expose HA select entities
  • text - expose HA text entities
  • time-entity - expose HA time entities

These support "Expose as" listening modes and input override blocking (v0.70.0+).

Deprecations (v0.79-v0.80)

State type configuration is deprecated (removed in v1.0). Use entity state casting instead.

Calendar event dates now use ISO

Полный SKILL.md на GitHub

Установить Node-RED в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHEATSHEET.mdINSTALLATION.mdLICENSEPROMPT-IDEAS.mdREADME.mdUSAGE-GUIDE.mdreferences/automation-patterns.mdreferences/context-storage.mdreferences/cookbook.mdreferences/core-concepts.mdreferences/dashboard-2.mdreferences/error-handling.mdreferences/external-apis.mdreferences/flow-organization.mdreferences/function-nodes.mdreferences/ha-action-nodes.mdreferences/ha-advanced-nodes.mdreferences/ha-entity-nodes.mdreferences/ha-setup.mdreferences/ha-state-nodes.mdreferences/ha-trigger-nodes.mdreferences/jsonata.mdreferences/message-handling.mdreferences/mqtt-integration.mdreferences/node-reference.mdreferences/node-types.mdreferences/performance.mdreferences/popular-apis.mdreferences/security.mdreferences/state-machines.mdreferences/subflows.mdreferences/troubleshooting-flowcharts.mdreferences/troubleshooting.mdtemplates/README.mdtemplates/advanced-motion-light.jsontemplates/appliance-tracker.jsontemplates/basic-motion-light.jsontemplates/climate-control.jsontemplates/energy-monitor.jsontemplates/notification-router.json

FAQ

Что делает скилл Node-RED?

Node-RED visual automation flows for Home Assistant. Covers visual automation, flow JSON, trigger-state, api-call-service, function nodes, context storage, timer patterns, error handling, and node-red-contrib-home-assistant-websocket nodes. Use when user mentions "Node-RED", "flow", "visual automation", or "node-redflöde".

Как установить скилл Node-RED?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Node-RED запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Node-RED с