How I can change a global variable or “tag” inside HomeyScript?

Can someone supply me with an example code how I can change a global variable or “tag” inside HomeyScript? I’m trying to change these tags:


I’ve managed to read the variables:

But I have no clue how to change them inside HomeyScript, as you can see from the console window, the value does not get updated. I’ve seen several posts about it, but all the scripts doesn’t seem to work or the thread is abandoned.
Homey.logic.updateVariable({id: Logic.id, variable: {'value' : 'TEST!'}})

Doesn’t seem to work… but maybe I have mistaken the syntax. Anyone can provide me a working syntax?