Node-RED

Listing all Telldus Live devices in Node-RED

Listing all Telldus Live devices in Node-RED

Continuing from the previous post about publishing data from Telldus Live to MQTT, here is small piece of related Node-RED code. It outputs a list of all (wirelessly controlled) 220V/mains switches I have linked to Telldus Live, using a Tellstick Net.

The background of the code was simply that I wanted a convenient way of getting a complete list of all devices (switches, dimmers, door bells, …) known to my Telldus Live account. When testing different devices, moving them around, renaming them etc, it is very easy to loose track of which device does what, and what their respective IDs are. This little function solves that quite nicely.

Using the device is easy:

  • Make sure the node.js wrapper for the Telldus Live API is installed and accessible to Node-RED
  • Configure the Telldus Live user credentials in the function node
  • Attach some kind of input node as a trigger (an injector node works well)
Reading device names and IDs from Telldus Live

The node will create one output message for each device in Telldus Live, as shown above. The same information is also written to the console log (easy to disable if it’s too spammy).

Code is found in the tellduslive-list-all-devices.js file over at GitHub.

Göran Sander Stockholm, Sweden

Qlik Sense consultant and toolmaker at Ptarmigan Labs. Ten years at Spotify, Qlik Luminary and Partner Ambassador, author of the open source Butler tools.

All posts by Göran Sander
Keep reading

More about

Butler

Butler-MQTT and a realtime reload dashboard for Sense

Teaser video: Realtime reload dashboard Just to get your interest – this video shows what Butler-MQTT can be used for. All the pieces are included in the Github repo. The concept of a reload dashboard can be very useful if you have long running (hours!) reloads. Instead of relying on

4 min read
Home automation

Using Node-RED for publishing Telldus Live data to MQTT

Telldus has a set of nice little gadgets (“Tellstick”, for short) that both allow you to control remote switches over radio (433.92 MHz), and to read sensors transmitting on that same frequency. Telldus also has a backend service, Telldus Live, which offer Tellstick users scheduling features (turning lamps on/

2 min read
Node-RED

Start Node-RED on OS X login

Node-RED is a truly awesome framework for visually building data flows. There is a lot of focus on wiring together hardware devices and Internet of Things, but there are also plenty of modules for connecting to email, social media, various online services etc. After using it during some months

2 min read