npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openhab/n8n-nodes-openhab

v0.4.3

Published

Custom n8n node for the openHAB REST API, including myopenHAB cloud support.

Downloads

728

Readme

n8n openHAB Community Node

GitHub Actions Build Status MIT

Custom n8n node for interacting with the openHAB REST API, with optional myopenHAB cloud access.

Features

  • Send commands or update state for items (lights, sensors, virtual switches, etc.).
  • Read item state, metadata, and list/filter items by tags.
  • Inspect things and their status.
  • List, trigger, enable/disable rules.
  • Fetch system info for quick health checks.
  • Works against local openHAB or remotely through myopenhab.org.

Requirements

  • openHAB with REST API enabled (default on openHAB 3+).
  • For local: openHAB API token (Settings → API Security → Create Token).
  • For remote via myopenHAB: myopenHAB account email + password. Optionally add an openHAB API token for admin-level endpoints.
  • n8n 1.0+ with custom nodes enabled.

Installation

  1. Install from npm in n8n:
    • n8n UI: Settings -> Community Nodes -> Install and enter @openhab/n8n-nodes-openhab
    • CLI (in your n8n deployment): npm install @openhab/n8n-nodes-openhab
  2. Restart n8n so it discovers the new node.

Local development install

  1. Build the node:
    npm install
    npm run build
  2. Point n8n custom extensions to this project path with N8N_CUSTOM_EXTENSIONS (or copy dist into your custom nodes directory).
  3. Restart n8n.

Usage

  1. Add the openHAB node to a workflow.
  2. Set credentials:
    • Local: Base URL (e.g., http://localhost:8080) + API token.
    • Cloud (myopenHAB): Choose “myopenHAB Account” in credentials and enter your myopenHAB login. If needed, set optional openHAB API Token (optional) to send X-OPENHAB-TOKEN.
  3. Choose a resource:
    • Item: list/get/state/command/update/metadata.
    • Thing: list/get/status.
    • Rule: list/run/enable/disable.
    • System: system info.
  4. Optional: enable Enable Debug Logging on the node to log request/response metadata to n8n logs (secrets are redacted).
  5. Execute the node; outputs are JSON objects ready for downstream n8n steps.

Usage examples

  1. Read a light state:
    • Resource: Item
    • Operation: Get State
    • Item Name: LivingRoomLight
  2. Turn a switch on:
    • Resource: Item
    • Operation: Send Command
    • Item Name: KitchenSwitch
    • Command: ON
  3. Run a rule:
    • Resource: Rule
    • Operation: Run
    • Rule UID: evening_scene

Notes

  • In myopenHAB cloud mode, you can add an optional openHAB API token for endpoints that require elevated permissions.
  • Self-signed certificates are supported only for local openHAB HTTPS, not for myopenHAB cloud authentication.
  • When sending commands, use values your item accepts (e.g., ON, OFF, 22, 50%, UP, DOWN).

Development

  • Lint: npm run lint
  • Build: npm run build
  • TypeScript config targets Node 18+.

License

MIT. See LICENSE.