You said you were a confident programmer so I expect you will be able to understand the existing logic in the function node. Javascript is not much different to C or other similar languages. Put a debug node showing the output of the Join node so you can see what comes out of there (and look at the Info tab for that node for an explanation). Also look in the node red docs at the pages on writing functions and on working with messages. First make sure you understand how the flow I posted works, then if you can't see how to extend it to one or three inputs come back and ask.
Colin
13
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Repost State of Mqtt Topic if other Topic's state is 1 | 21 | 1361 | 11 April 2020 | |
| How to send an initial MQTT message to get the status of a tasmota switch? | 49 | 5441 | 6 December 2021 | |
| Two way switch infinite loop | 23 | 1376 | 3 September 2022 | |
| Problem with MQTT and switch update | 27 | 5456 | 26 November 2020 | |
| MQTT is driving me crazy with inconsistent doings | 77 | 2653 | 29 July 2020 |