Storing data into variables | Node-RED Essentials | Tutorial

preview_player
Показать описание
Working with contexts, flow and global variables in Node-RED is a valuable skill when building complex automations.

Using JSON and JavaScript makes it a fairly intuitive experience in Node-RED.

I show you examples using the Change Node and the Function Node; these are both very useful nodes.

Useful Links:

00:00 Intro
00:42 Change Node - Setting string variables
03:11 Change Node - JSON Strings & JS Objects
04:56 - Saving variables across Node-RED restarts
06:46 Change Node - Clearing / removing variables
07:33 Global Variable example with Home Assistant entity
08:58 Function Node - Storing and retrieving from variables
11:20 Local / Node context - Accessing data just within a node
12:42 Outro

#nodered
Рекомендации по теме
Комментарии
Автор

It helped me a lot to do an automation with my machine laundry and a zigbee button! Thank you so much!

romrocha
Автор

For the saving variables across node-red restarts section: how do I find the settings.js.
I legit installed Studio Code but there is no folder node red

GlibberGames
Автор

Great lesson! Can you manage to send a Whatsapp message using Node-Red?

SameeroafBazivich
join shbcf.ru