Include a variable in Change Node global variable name

Not sure if that makes sense, but essentially I’d like to know if it’s possible to use “variable variable names” within nodes.

I’d like to set global.light.config.{{payload}} to some value.

This is so I don’t have to have one change node per light name, I’d have to then keep maintaining the flow when/if new lights are added/removed/renamed/etc.

Example Image: https://i.imgur.com/XVMYqLh.png

If you can set the whole config at the same time, just can do it that way using JSONata

image

Alternatively you can use bracket notation instead of dot notation:

image

The bracket notation works perfectly, thanks!