Skip to content
Ruud Senden edited this page Jun 3, 2019 · 2 revisions

node-red-contrib-map

This is a Node-RED plugin that provides a new mappings category with the following nodes:

  • map: Allows for mapping a configurable property from an input message to a configurable property on the output message, based on the configured mappings. For example, given an input message containing topic:deviceId, this node can add add a message property topicName:deviceName.
  • set: Allows for adding a configurable property based on a specific mapping in the configured mappings. For example, this allows for adding a property topic:deviceId for a given device to any input message.
  • switch: Allows for switching between one or more outputs based on configured mappings. For example, given an input message containing topic:deviceId, you can define separate outputs for device id deviceId1 and deviceId2.

All mappings are configured through a configuration node, meaning that each of the nodes listed above can re-use a pre-configured mapping. For example, you can have one configuration that maps input device id's to device names, and another configuration that maps device names to output device id's.

Clone this wiki locally