If you need the data to be persisted between OH restarts, you will need to use an Item or write the data to a file. If you only need to share the data between other rules in a script file, you can use a global variable. If you need to share the data between multiple rules created from multiple scripts and do not need it to be persisted, then you can create your own ScriptExtension. I touch on the latter here…