Hello,
I have developed a project that i will push out to multiple external devices. I am using an mqtt sparkplug node and i want to have a unique id (Sparkplug Name) for every device. Therefore I have been looking into env variables to make links to values within the configuration nodes.
I am able to use custom env variables in flows, but i am looking for a simple way to use custom env variables in configuration nodes. I am aware I can add to the settings.js file and restart node-red, but that requires more steps than just changing the configuration nodes manually. Is there a quick and simple way to link values into configuration nodes?
My best attempt has been to use ${USER} as a unique id (Sparkplug Name) and then changing the username for each raspberry pi, but that causes issues with the file structure in the raspberry pi that requires extra steps to fix.