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

node-red-contrib-node-tradfri

v0.1.2

Published

Node-RED node to utilize IKEA Trådfri devices. Fully implemented in Node.js.

Readme

node-red-contrib-node-tradfri

Node-RED node to interface with IKEA Tradfri lights without any external binaries thanks to node-tradfri.

  • All operations (brightness, color temperature, color, etc.) supported by the gateway are available.
  • Support for observation (i.e. reporting on changes to the light).

Usage

Only one node (besides the config node) are necessary for operation. After the configuration has been successful -- either by providing an existing identity and PSK or by generating new ones by providing the security code from the gateway -- simply select which light to target and check if the node should observe the device as well.

Controlling the node

Nodes can be programmatically controlled by sending a message with msg.payload set to one of the following strings:

  • "status" The node will output the current status of its target light.

Controlling the light

Lights can be controlled by sending an objet with one or more of the following properties as msg.payload to the node.

  • on boolean Turn the light on or off.
  • brightness number [0,100] The brightness of the light.
  • colorTemperature number [0,100] The color temperature of the light.
  • color string Sets the color of the light. For WS-bulbs, F5FAF6, F1E0B5 and EFD275 will set the light to the default cold, normal and warm temperatures respectively.
  • transition number The default transition time for operations. Will only work for single operation commands and not for on/off. Defaults to 0.
  • hue number [0,365] Sets the hue of the light. Only for CWS. (UNTESTED)
  • saturation number [0,100] Sets the saturation of the light. Only for CWS. (UNTESTED)

Output

If the node is set to observe and the target light is updated or if triggered manually by sending a "status" request as msg.payload to the node, the node will send a msg.payload with the current status of the light.

  • id number The id of the light.
  • name string The given name of the light.
  • model string The model of the light.
  • firmware string The firmware of the light.
  • alive boolean True if the gateway can communicate with the light, false if not.
  • on boolean True if the light is on, false if not.
  • brightness number [0,100] The brightness of the light.
  • colorTemperature number [0,100] The color temperature of the light.
  • color string The hex-code for the color of the light. Only fully supported by CWS bulbs.
  • colorX number The x component of the xy-color.
  • colorY number The y component of the xy-color.
  • transition number The default transition time for operations. However, since the default value of 0.5 makes it impossible to send temperature and brightness updates in the same command, this is overridden and set to 0 by default.
  • created number Probably when the light was paired with the gateway for the first time, measured in epoch time.
  • seen number When the light was last interacted with by the gateway (or similar), measured in epoch time.
  • type number The type of device where 2 is light.
  • power number The type of power source powering the light. Will most likely always be 1.

Changelog

0.1.2

  • Moved output status object from msg.payload.light to msg.payload.
  • Updated security code, identity and PSK to be saved as credentials in config.
  • Updated info panels and tweaked node appearance.

0.1.1

  • Published to NPM