-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Ruud Senden edited this page Jun 3, 2019
·
2 revisions
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 propertytopicName: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 iddeviceId1
anddeviceId2
.
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.