Up to this point, we're OK, it's working properly and I can see it from the console output. My question is how can I take this value that comes out of my script and assign it to a Tag?
# Create a list with the tag paths to be updated.
paths = ["[default]Folder/Tag_A","[default]Folder/Tag_B"]
# Create a list with the update values, one value for each path.
values = [1,2]
# Execute the write operation.
system.tag.writeBlocking(paths, values)
With the (system.tag.writeAsync or writeBlocking) I managed to write in my tags, in the Gateway tag change script I had to make changes, but I managed to leave it even better than I thought. Thanks a lot guys!