Please change the behaviour of getThing('someThing').setLabel('newLabel') so that the change persists after a restart of OpenHAB.
I haven't tested it, but .setLocation(location) and .setProperty(name, value) should also be persistent if they aren't already.
Your Environment
OpenHAB 4.0.0M3 JS Scripting
Please change the behaviour of getThing('someThing').setLabel('newLabel') so that the change persists after a restart of OpenHAB. I haven't tested it, but .setLocation(location) and .setProperty(name, value) should also be persistent if they aren't already.
Reference https://github.com/openhab/openhab-core/issues/3648.