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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hoobs/ikea-tradfri

v1.2.30

Published

homebridge-ikea-tradfri-gateway

Downloads

9

Readme

homebridge-ikea-tradfri-gateway

Yet another HomeBridge plugin for the IKEA Trådfri Gateway.

There are several other npm modules that connect to the IKEA Trådfri Gateway.

This plugin uses the npm module node-tradfri-client from alcalzone that does not require any other components to be installed and works on multiple platforms.

Installation

First, install Homebridge. See https://www.npmjs.com/package/homebridge for more information.

Then install this plugin.

$ sudo npm install homebridge-ikea-tradfri-gateway -g

If you are having permission problems during install, try this

$ sudo npm install homebridge-ikea-tradfri-gateway -g --unsafe-perm

Configuration File

Configure your ~/.homebridge/config.json with the following platform.

{
    "bridge": {
        "name": "Trådfri",
        "username": "AA:22:3D:E3:CE:57",
        "port": 51826,
        "pin": "031-45-123"
    },

    "description": "This is an example configuration file",

    "platforms": [
        {
            "platform": "Ikea Trådfri Gateway",
            "name": "Ikea Trådfri Gateway",
            "securityCode" : "this-is-found-on-the-back-of-the-gateway",
            "expose": ["lightbulbs", "outlets", "blinds"]
        }
    ]
}

You can also only expose non-IKEA devices (which are not exposed to HomeKit with the native integration) with:
"expose: ["non-ikea-lightbulbs", "non-ikea-outlets", "non-ikea-blinds"]

This module auto detects the ip address of the IKEA gateway. If by some reason you would like to access a specific gateway, merge the following into ~/.homebridge/config.json.

{
    ...
    "platforms": [
        {
            ...
            "host": "ip-address-of-ikea-gateway"
        }
    ]
}

What This Plugin Does

This plugin simply extracts all lightbulbs, outlets and blinds currently in use by the IKEA Trådfri Gateway and exposes them to HomeKit and you have the ability to turn the devices on or off. And, of course, you may change the device names and group them into rooms on your iPhone or iPad.

The following IKEA devices are supported

  • Standard white bulbs
  • RGB bulbs
  • Warm white bulbs with temperature control
  • Outlets
  • Blinds

After this, start homebridge, scan the presented code with your iPhone, and hopefully you will se all you IKEA lightbulbs in your iPhone/iPad Home app.

To Do

  • Support motion sensors and remote controls if possible
  • Handle reboot or connection break of gateway

Bugfixes/Updates

  • 2018-01-29 - Can now have accessories with the same name in the IKEA app
  • 2018-02-04 - Updated to work with gateway version 1.3.14. The security code must now be present in ~/.homebrige/config.json.
  • 2019-01-19 - Added support for outlets.
  • 2019-08-19 - Added support for blinds.
  • 2019-08-25 - Added support for auto detecting the IKEA gateway. The host property in ~/.homebridge/config.json is no longer required.
  • 2019-11-27 - Added support for non IKEA devices.

Useful Links

  • https://www.reddit.com/r/tradfri/